:root {
  --primary: #fe5102;
  --background: #f9f0df;
  --card-bg: #fff;
  --text: #252525;
  --text-secondary: #666666;
  --border: #e0e0e0;
  --header-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: rgba(255, 255, 255, 0.584);
  --shadow: rgba(0, 0, 0, 0.05);
  --menu-bg: rgba(255, 255, 255, 0.95);
  --nav-height: 50px;
  --bg-dark: #ffd999;
  --bg1: #fffcfc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  padding-top: var(--nav-height);
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  height: var(--nav-height);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  display: flex;
  gap: 2px;
  align-items: center;
}

/* Main Navigation */
.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform 0.3s ease;
  font-size: 22px;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 33px;
  height: 33px;
  position: relative;
  color: #000;
  font-size: 30px;
}

.hero {
  max-width: 1300px;
  padding: 10px;
  margin: auto;
}

.btn-group {
  display: flex;
  margin-top: 1em;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-size: 1.3rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #e03d00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 69, 0, 0.2);
}

.btn-secondary {
  background-color: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--background);
  transform: translateY(-2px);
}

/* Cards Section */
.cards {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.card-grid a {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 10px 10px;
  box-shadow: 0 4px 12px var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  text-decoration: none;
  color: #000000;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.card-grid a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow);
}

.card-grid h2 {
  margin: 0px;
  padding: 0px;
  font-size: 14px;
  font-weight: 600;
}

.card-grid img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.card-grid p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  opacity: 0.8;
}

/* API Data Section */
.api-section {
  padding: 60px 0;
  background-color: #ffeccc;
}

.horoscope-placeholder {
  padding: 40px;
  background-color: var(--background);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  margin-top: 30px;
}

/* FAQ Section */
.faq {
  padding: 80px 0;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--background);
}

.faq-question::after {
  content: "↓";
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 200px;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border);
  margin-top: 2em;
}

.footer-content {
  display: grid;

  gap: 40px;
  margin-bottom: 40px;
}

.footer-about {
  grid-column: 1;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  display: block;
}

.footer-about p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-links h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

.marginBlock {
  margin-block: 20px;
}

.ZodiacSigns {
  text-align: center;
  padding: 2em 0;
}

.zodiac-signs-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px 30px;
  padding: 10px;
  text-align: center;
}

.zodiac-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 8px 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  color: var(--text);
}

.zodiac-sign:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.zodiac-sign .zodiac-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.zodiac-sign h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.zodiac-sign p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
}

.hero-left {
  flex: 0 0 68%;
}

.hero-right {
  flex: 0 0 32%;
  padding: 0px 10px;
}

.hero-right h2 {
  margin: 0px;
  padding: 0px;
}

.hero-panchang {
  background-color: var(--background);
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  font-size: 14px;
  margin-inline: 5px;
}


.hero-panchang h2{
    text-align:center;
}
.hero-panchang table {
  border-collapse: collapse;
  width: 100%;
}

.hero-panchang th,
.hero-panchang td {
  border: 1px solid #caccd1;
  padding: 0.22rem 0.75rem;
  text-align: left;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.zodiac-sign-detail {
  text-align: center;
  padding: 5px 2em 2em 2em;
  border: var(--border) solid 1px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  background-color: #fff;
  color: var(--text);
}

.sidebar-sign {
  padding: 1em;
  border: var(--border) solid 1px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  background-color: var(--card-bg);
}

.zodiac-sign-detail h2 {
  margin: 0px;
  padding: 0px;
}

.zodiac-content {
  margin-top: 1em;
}

.view {
  display: flex; /* Use flexbox for easy layout */
  flex-direction: row; /* Arrange items in a row on desktop */
  gap: 1em;
}

.view_one {
  width: 70%;
}

.view_two {
  width: 30%;
}

.view_two a,
.view_sidebar a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 10px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.view_two a:hover {
  color: var(--primary);
}

.view_two a.active,
.view_sidebar a.active {
  color: var(--primary);
}

.view_sidebar a:hover {
  color: var(--primary);
}

.sign_related {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-block: 2em;
  flex-wrap: wrap;
}

.sign_related a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1em;
  text-decoration: none;
  color: var(--text);
  padding: 1em;
  border: var(--border) solid 1px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  min-width: 200px;
}

.sign_related a:hover {
  color: var(--primary);
}

.sign_related a i {
  font-size: 3em;
}

.main-title {
  text-align: center;
  margin-top: 1em;
}

.ish3 {
  text-align: center;
  margin: 0px;
  padding: 0px;
  margin-bottom: 10px;
}

.main-paragraph {
  text-align: center;
  margin-bottom: 1em;
}

.zodiac-content {
  max-height: 200px; /* default for desktop */
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

.fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.read-more-btn,
.save-img-btn {
  margin-top: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.read-more-btn:hover,
.save-img-btn:hover {
  background: #333;
}

.btn-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
}

.nakshatra {
  margin-bottom: 2em;
}
.nakshatra-content {
  padding: 5px 2em 2em 2em;
  border: var(--border) solid 1px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  background-color: var(--background);
  color: var(--text);
}

/* Headings */
.nakshatra-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.2em 0 0;
  line-height: 1.3;
  display: inline-block;
  padding-bottom: 0.2em;
}
/* Headings */
.nakshatra-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.2em 0 0.6em;
  line-height: 1.3;
  border-bottom: 2px solid currentColor;
  display: inline-block;
  padding-bottom: 0.2em;
}

/* Paragraphs */
.nakshatra-content p {
  margin: 0.8em 0;
  text-align: justify;
}

/* Tables */
.nakshatra-content table,
.two table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.95rem;
}

.nakshatra-content table th,
.nakshatra-content table td,
.two table th,
.two table td {
  border: 1px solid var(--border);
  padding: 0.6em 0.8em;
  text-align: left;
  vertical-align: top;
}

.nakshatra-content table th {
  font-weight: 600;
}

.nakshatra-content table tr:nth-child(even) {
  opacity: 0.9; /* keeps it subtle, works in both light & dark */
}

.nakshatra_img_name {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nakshatra_img_name img {
  width: 35px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.nakshatra-image {
  border-radius: 50%;
  border: 1px solid var(--border);
}

/* Headings */
.main_content h2,
.main_content h3,
.main_content h4,
.main_content h5 {
  margin: 1.25em 0 0.5em;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  scroll-margin-top: 90px; /* helpful for anchor links under fixed headers */
}

/* Proportional sizes using clamp for responsiveness */
.main_content h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}
.main_content h3 {
  font-size: clamp(1.125rem, 1.9vw, 1.4rem);
}
.main_content h4 {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}
.main_content h5 {
  font-size: clamp(0.95rem, 1.3vw, 1rem);
}

.main_content p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.main_content ul,
.main_content ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  line-height: 1.6;
}

.ch-col {
  background-color: var(--card-bg);
  display: flex;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
  padding: 1em;
  border: 2px dashed var(--border);
  border-radius: 10px;
}

.is_center {
  text-align: center;
  margin-block: 1em;
}

.tithi_content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  background:#fff;
  padding:10px;
   border: 2px dashed var(--border);
  border-radius: 10px;
}

.tithi_content .one img {
  width: 150px;
  height: auto;
  display: block;
  border-radius: 50%;
}
.tithi_content .one {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chweb_result.loading .tithi_content,
#chweb_result.loading .pravishte-gate,
#chweb_result.loading #table-data {
  opacity: 0.1;
}
#chweb_result.loading {
  pointer-events: none;
  position: relative;
}

#chweb_result.loading::after {
  content: "⏳ Loading...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;

  animation: blinker 0.4s linear infinite;
}

.ch_form {
  display: flex;
  flex-wrap: wrap; /* side by side on desktop, stack on mobile */
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  margin: 40px auto;
  padding: 10px;
  box-sizing: border-box;
}

/* Style date input */
.ch_form input[type="date"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.3s,
    color 0.3s;
}

/* Remove default icon space */
.ch_form input[type="date"]::-webkit-inner-spin-button,
.ch_form input[type="date"]::-webkit-clear-button {
  display: none;
}

.ch_form input[type="date"]::-webkit-calendar-picker-indicator {
  background: url("data:image/svg+xml;utf8,<svg fill='%23ccc' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z'/></svg>")
    no-repeat center;
  background-size: 20px 20px;
  opacity: 0.7;
  cursor: pointer;
  border-radius: 4px;
}

/* Dark mode icon (white) */
[data-theme="dark"]
  .ch_form
  input[type="date"]::-webkit-calendar-picker-indicator {
  background: url("data:image/svg+xml;utf8,<svg fill='%23f1f1f1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z'/></svg>")
    no-repeat center;
  background-size: 20px 20px;
  opacity: 0.9;
}

/* Popup calendar background (Firefox only) */
[data-theme="dark"] input[type="date"] {
  color-scheme: dark;
}

.ch_form .submit_button,
.sbtn {
  padding: 12px 5px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0; /* keeps button size consistent */
  min-width: 110px;
}

.ch_form .submit_button:hover,
.sbtn:hover {
  filter: brightness(0.9);
}

.ch_form .submit_button:disabled,
.sbtn:disabled {
  background-color: #8e8e8e;
  pointer-events: none;
  cursor: not-allowed;
}

.blink {
  animation: blinker 0.4s linear infinite;
}

@keyframes blinker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.cricle {
  border-radius: 50%;
  aspect-ratio: 1/1;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.pravishte-gate {
  text-align: center;
  padding: 2em 1em;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: rgba(255, 68, 0, 0.306);
  margin-bottom: 2em;
}

.pravishte-gate .number {
  font-size: 4em;
  font-weight: 700;
}

.yoga {
  font-size: 2.5em;
  font-weight: 700;
}

.karan {
  font-size: 2em;
  font-weight: 700;
  max-width: 700px;
  margin: 1em auto;
}

/* Scope styles only to .main_ch_form */
.main_ch_form {
  background: var(--card-bg);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px var(--shadow);

  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Flex container */
.main_ch_form .ch_flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Default (desktop) → 33% each */
.main_ch_form .ch_flex > div {
  flex: 0 0 calc(33.33% - 12px);
  max-width: 33.33%;
  position: relative; /* for dropdown */
}

.main_ch_form label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  display: block;
}

.main_ch_form input[type="text"],
.main_ch_form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  background: var(--background);
  box-sizing: border-box;
}

.main_ch_form input[type="text"]::placeholder {
  color: var(--text-secondary);
}

/* Autocomplete dropdown positioned under city input */
.main_ch_form #cltyResult {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  background: var(--background);
  display: none;
  z-index: 1000;
}

.main_ch_form #cltyResult div {
  padding: 10px;
  cursor: pointer;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.main_ch_form #cltyResult div:last-child {
  border-bottom: none;
}

.main_ch_form #cltyResult div:hover {
  background: var(--card-bg);
}

/* Submit button */
.main_ch_form .submit_button {
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  max-width: 300px;
  min-width: 250px;
  margin: auto;
  transition: background 0.3s ease;
}

.main_ch_form .submit_button:hover {
  background: #e03e00;
}

.main_ch_form .submit_button:disabled {
  background-color: #8e8e8e;
  pointer-events: none;
  cursor: not-allowed;
}

/* Calendar Table Styles - Only applies under .ch_table */
.ch_table {
  color: var(--text);
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
}

.ch_table .table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  background-color: var(--card-bg);
  color: var(--text);
}

.ch_table .table-bordered {
  border: 1px solid var(--border);
}

.ch_table .table-bordered th,
.ch_table .table-bordered td {
  border: 1px solid var(--border);
  padding: 12px 8px;
  vertical-align: top;
}

/* Header styling */
.ch_table thead th {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 15px 8px;
  font-size: 14px;
  border-color: var(--primary);
}

/* Cell content styling */
.ch_table td {
  position: relative;
  min-height: 150px;
  background-color: var(--card-bg);
  color: var(--text);
}

.ch_table td .number {
  font-size: 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ch_table td .number span {
  display: flex;
  gap: 5px;
  align-items: center;
}

.number span:nth-child(1) {
  color: var(--primary);
  opacity: 0.5;
}
.number span:nth-child(2) {
  font-size: 30px;
}

/* Small text details */
.ch_table .small-text {
  font-size: 11px;
  line-height: 1.3;
  margin-top: 8px;
  color: var(--text-secondary);
}

.ch_table .small-text b {
  color: var(--text);
  font-weight: 600;
}

.ch_table .small-text span {
  color: var(--primary);
}

/* Old day styling - disabled appearance */
.ch_table .old-day {
  opacity: 0.5;
  background-color: var(--background);
  color: var(--text-secondary);
}

.ch_table .old-day .small-text {
  opacity: 0.7;
}

.ch_table .old-day .small-text b {
  color: var(--text-secondary);
}

.ch_table .old-day .small-text span {
  color: var(--text-secondary);
}

/* Today highlighting */
.ch_table .today-day {
  background-color: rgba(255, 69, 0, 0.1);
  border: 2px solid var(--primary);
  font-weight: bold;
}

/* Moon phase icons */
.ch_table img {
  vertical-align: middle;
  margin-right: 5px;
  opacity: 0.8;
}


/* Scrollbar styling for better UX */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--background);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

#table-data table {
  border-collapse: collapse;
  width: 100%;
  margin-block: 1em;
  box-shadow:
    var(--border) 0px 1px 4px,
    var(--border) 0px 0px 0px 3px;
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 1em;
}

#table-data td,
#table-data th {
  border: 1px solid var(--border);
  padding: 8px;
}

#table-data tr:nth-child(even) {
  background-color: var(--card-bg);
}

#table-data th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: var(--bg-dark);
  color: #000000;
}

.is_center {
  text-align: center;
}

.chv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background-color: var(--card-bg);
  padding: 1em;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 1em;
}

.chv .side2 > div {
  text-align: center;
  width: 130px;
  padding: 6px;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    rgba(11, 116, 222, 0.06),
    rgba(11, 116, 222, 0.02)
  );
}

.chv .side2 h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
}

.side1 div h4:first-child {
  font-size: 20px;
}

.view_content {
  display: flex;
  gap: 20px;
  margin-block: 1em;
}

.view_main {
  flex: 1;
  width: 70%;
}

.view_sidebar {
  width: 30%;
  position: sticky;
  top: 80px;
  height: fit-content;
  margin-top: 1em;
}

/* Astrology Quote Styling */
.astro-quote-block {
  text-align: center;
  margin: 1em 1px 2em 1px;
  padding: 20px;
  border-left: 4px solid var(--primary);
  border-right: 4px solid var(--primary);
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 157, 130, 0.3);
}

.astro-quote-block h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.astro-quote {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--primary);
  margin: 10px 0;
  position: relative;
}

.astro-quote::before,
.astro-quote::after {
  content: "✦";
  color: var(--primary);
  font-size: 1.4rem;
  margin: 0 6px;
}

.astro-author {
  font-size: 1rem;
  font-style: italic;
  color: #2d71aa;
  margin-top: 12px;
}

.lytics-category-title {
  font-size: 24px;
  margin: 30px 0 15px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 5px;
  color: var(--primary);
}

.lytics-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers items in each row */
  gap: 20px;
}

.lytics-card-grid a {
  flex: 1 1 220px; /* minimum 220px, grows if space */
  max-width: 250px;

  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  text-align: left;
}
.lytics-card-grid a:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lytics-card-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.lyrics {
  flex: 1;
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  line-height: 2;
  font-weight: 600;
}

.ag {
  margin: 2em 0;
}

.is_lyrics {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
  margin: 1em auto;
  padding: 0 1em;
  font-weight: 500;
  background: transparent;
  border-radius: 12px;
  border: 1px solid var(--primary);
  box-shadow: var(--shadow);
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

hr.dpHorizontalLine {
  border-top: 1px solid red;
  margin-bottom: 2em;
}

#table-data table {
  margin-bottom: 2em;
}

.is_lyrics h1,
.is_lyrics img {
  margin-bottom: 1em;
}

.related_one {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  padding: 1em 10px 2em 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow);

  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.related_one h2 {
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  margin-bottom: 1em;
}

.ch_container_404 {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-block: 2em;
}

.ch_content_404 {
  text-align: center;

  padding: 40px;
}

.ch_code_404 {
  font-size: 8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.ch_message_404 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.ch_desc_404 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.ch_button_404 {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.ch_button_404:hover {
  background-color: #e03d00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

.ch_button_404:active {
  transform: translateY(0);
}
.is_content {
  margin-top: 2em;
}

.is_content p {
  margin-bottom: 2em;
}

.is_content ul {
  list-style-type: disc; /* Options: disc, circle, square, none */
  margin: 1em 0; /* Vertical margin for spacing */
  padding-left: 2em; /* Indentation for list items */
  font-size: 16px; /* Font size for list items */
  line-height: 1.5; /* Line height for readability */
  color: #333; /* Text color */
}

/* Styling for list items in unordered lists */
.is_content ul li {
  margin-bottom: 0.5em; /* Space between list items */
}

/* Styling for nested unordered lists */
.is_content ul ul {
  list-style-type: circle; /* Different marker for nested lists */
  padding-left: 1.5em; /* Indent nested lists further */
}

/* General styling for ordered lists (<ol>) */
.is_content ol {
  list-style-type: decimal; /* Options: decimal, lower-roman, upper-roman, lower-alpha, upper-alpha, none */
  margin: 1em 0; /* Vertical margin for spacing */
  padding-left: 2em; /* Indentation for list items */
  font-size: 16px; /* Font size for list items */
  line-height: 1.5; /* Line height for readability */
  color: #333; /* Text color */
}

/* Styling for list items in ordered lists */
.is_content ol li {
  margin-bottom: 0.5em; /* Space between list items */
}

/* Styling for nested ordered lists */
.is_content ol ol {
  list-style-type: lower-alpha; /* Different numbering for nested lists */
  padding-left: 1.5em; /* Indent nested lists further */
}

.toc {
  background: var(--card-bg);
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  border-radius: 6px;
}
.toc a {
  display: block;
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
}
.ch_mantra {
  border-left: 4px solid var(--primary);
  padding: 12px 18px;
  margin: 18px 0;
  background: var(--card-bg);
  border-radius: 6px;
}
.mantra {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 8px 0;
}
.sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 8px;
}
pre {
  background: var(--background);
  padding: 12px;
  border-radius: 6px;
  overflow: auto;
  white-space: pre-wrap;
}
a {
  color: var(--primary);
  text-decoration: none;
}
.note {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* Scope everything to .zodiac-form */
.zodiac-form {
  margin: 20px auto;
  max-width: 900px;
}

.zodiac-form .zf-container {
  display: flex;
  justify-content: center;
}

.zodiac-form .zf-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  text-align: center;
  width: 100%;
}

.zodiac-form .zf-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.zodiac-form .zf-col {
  flex: 1 1 40%;
  margin: 10px;
}

.zodiac-form .zf-title {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: var(--primary);
}

.zodiac-form .zf-img {
  margin-bottom: 10px;
}

.zodiac-form .zf-select-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.zodiac-form select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

.zodiac-form .zf-radio-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.zodiac-form .zf-radio-group label {
  cursor: pointer;
}

.zodiac-form .zf-heart {
  flex: 0 1 60px;
  font-size: 2rem;
  color: red;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zodiac-form .zf-submit {
  margin-top: 20px;
}

.zodiac-form .zf-submit button {
  background: #fbc02d;
  color: #333;
  border: none;
  padding: 10px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.zodiac-form .zf-submit button:hover {
  background: #f9a825;
}

.error {
  text-align: center;
  padding: 10px;
  color: red;
}

.compatibility h2 {
  color: var(--primary);
}

.compatibility p {
  margin: 0.6em 0;
  text-align: justify;
  line-height: 1.6;
}

.compatibility {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1em;
  box-shadow: 0 4px 12px var(--shadow);
  margin-top: 1em;
}

.isDate {
  min-width: 230px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  color: var(--text);
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.3s,
    color 0.3s;
}

.suns {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 2em;
  flex-wrap: wrap;
}

.sun {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
}

.highlight {
  text-align: center;
  font-size: 2em;
  color: var(--primary);
  font-weight: 700;
}

.is_date {
  text-align: center;
  font-size: 1.5em;

  font-weight: 700;
}

.rahukaal-highlight {
  background-color: rgba(255, 68, 0, 0.1);
  border: 2px solid var(--primary);
  font-weight: bold;
  border-radius: 6px;
  padding: 1.5em 1em;
  margin-top: 4px;
}

.duration {
  text-align: center;
  font-size: 1.2em;
  margin-top: 1em;
}

.itsFlex {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.itsFlex table {
  color: #fff;
  font-weight: 600;
}

.legend {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  margin-bottom: 2em;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-right: 20px;
  font-size: 16px;
}
.color-box {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 1px solid #ccc;
}
.most-auspicious {
  background-color: #8bc34a; /* Light Green */
}
.good {
  background-color: #ffc107; /* Amber */
}
.inauspicious-orange {
  background-color: #ff5722; /* Deep Orange */
}
.inauspicious-gray {
  background-color: #78909c; /* Blue Gray */
}

.selectCity {
  position: relative; /* for dropdown */
}

.selectCity #cltyResult {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  background: var(--background);
  display: none;
  z-index: 1000;
}

.selectCity #cltyResult div {
  padding: 10px;
  cursor: pointer;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.selectCity #cltyResult div:last-child {
  border-bottom: none;
}

.selectCity #cltyResult div:hover {
  background: var(--card-bg);
}

.birth_details_form input,
.birth_details_form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  background: var(--background);
  box-sizing: border-box;
}

.selectgird {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.birth_form {
  background: var(--card-bg);
  padding: 16px 2em;
  border-radius: 12px;
  box-shadow: 0 2px 6px var(--shadow);

  margin: 0 auto 2em;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.birth_form h2 {
  margin: 0px;
}

.birth_form .label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  margin-top: 1em;
  display: block;
}

.genderOptions {
  display: flex;
  gap: 15px;
}

.genderOptions label {
  cursor: pointer;
  display: flex;
  gap: 5px;
  background-color: var(--background);
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  align-items: center;
  font-weight: 500;
  color: var(--text);
}

.manglik ul {
  padding-left: 1em;
}

.manglik-status {
  padding: 10px 14px;
  border-radius: 6px;
  display: block;
  font-weight: 600;
  text-align: center;
}

.manglik-yes {
  background: #ffe6e6;
  color: #b30000;
  border: 1px solid #ffb3b3;
}

.manglik-no {
  background: #e9ffea;
  color: #006600;
  border: 1px solid #b8ffcb;
}

.manglik-yes ~ p,
.manglik-yes ~ ul {
  opacity: 0.95;
}
.manglik-no ~ p,
.manglik-no ~ ul {
  opacity: 1;
}

.nakshatraResult h2 {
  margin: 0px;
  padding: 0px;
  font-size: 1.6em;
}

.ImageTabs {
  text-align: center;
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.ImageTabs img {
  max-width: 100%;
  height: auto;

  box-shadow: 0 4px 12px var(--shadow);
}

.ImageTabs div[id^="img"] {
  display: none;
}

.ImageTabs div[id^="img"]:first-child {
  display: block;
}

.ImageTabs button {
  padding: 8px 16px;
  margin: 0 4px;
  border: 1px solid var(--border);
  background: var(--background);
  cursor: pointer;
  color: var(--text);
}

.ImageTabs button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.birthstoneContent table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: Arial, sans-serif;
}

.birthstoneContent table th {
  text-align: left;
  padding: 12px 15px;
  background: var(--card-bg);
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
  width: 30%;
}

.birthstoneContent table td {
  padding: 12px 15px;
  border: 1px solid var(--border);
  vertical-align: middle;
}

.birthstoneContent .stoneBox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  margin: 2px 1px;
}

.birthstoneContent .stoneBox img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--background);
}

.birthstoneContent .stoneBox .b {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.sadesatiContent {
  text-align: center;

  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  justify-content: center;
  background-color: var(--card-bg);
  border: 2px solid var(--border);
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
}

.sadesatiContent span:nth-child(2) {
  font-size: 2em;
  font-weight: 700;
  color: red;
}
.sadesatiContent span.no {
  font-size: 2em;
  font-weight: 700;
  color: green;
}

.month-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  justify-content: space-between;
}

.month-buttons button {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.3s;
}

.month-buttons button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

[id^="tab-month-"] {
  display: none;
}

.grah-gochar ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.grah-gochar li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.grah-gochar li span:first-child {
  font-size: 1.2em;
  font-weight: bold;

  display: block;
  margin-bottom: 5px;
}

.grah-gochar li span:not(:first-child) {
  font-weight: bold;
}

.grah-gochar li:not(:first-child) {
  font-size: 0.95em;

  line-height: 1.5;
}

.grah-gochar em {
  font-style: italic;
  color: var(--primary);
}

.grah-gochar u {
  text-decoration: underline;
}

.showcase img {
  width: 100%;
  border-radius: 20px;
}

.grid-container {
  display: grid;
  gap: 20px;
  padding: 10px;
}

/* Default (mobile: stack) */
.column-1,
.column-2 {
  grid-column: 1 / -1;
}

.about {
  background: #ffeccc;
  padding-block: 2em;
  color: #000428;
}

.bg-custom-1 {
  background: rgb(223, 230, 233);
}
.bg-custom-2 {
  background: rgb(223, 207, 167);
}
.bg-custom-3 {
  background: rgb(255, 234, 167);
}
.bg-custom-4 {
  background: rgb(253, 203, 110);
}
.bg-custom-5 {
  background: rgb(85, 239, 196);
}
.bg-custom-6 {
  background: rgb(233, 224, 213);
}
.bg-custom-7 {
  background: rgb(186, 181, 255);
}
.bg-custom-8 {
  background: rgb(165, 210, 255);
}
.bg-custom-9 {
  background: rgb(163, 227, 236);
}
.bg-custom-10 {
  background: rgb(250, 177, 160);
}
.bg-custom-11 {
  background: rgb(129, 236, 236);
}
.bg-custom-12 {
  background: rgb(236, 234, 129);
}
.bg-custom-13 {
  background: rgb(177, 252, 194);
}
.vediclinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

  gap: 10px;
  flex-wrap: wrap;
}
.vedicLink {
  color: #000;
  padding: 10px 15px;
  border-radius: 10px;
  display: flex;
  min-width: 150px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 500;
  border: 1px solid var(--border);
}

.vedicContent {
  background-color: var(--card-bg);
  padding: 2em;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-block: 1em;
}

.vedicContent .mantra {
  background-color: var(--background);
  padding: 1.2em;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 0px;
}

.vedicContent h2 {
  margin-top: 2em;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.vedicContent h2:nth-child(1) {
  margin-top: 0.2em;
}
.vedicContent h3 {
  font-size: 18px;
  margin-top: 3em;
  margin-bottom: 0px;
}

.vedicContent h3::before {
  content: "↪ "; /* put your emoji here */
  margin-right: 6px; /* spacing between emoji and text */
}

.vedichome h2 {
  margin-bottom: 0.1em;
  font-size: 4ch;
}

.vedichome p {
  margin-bottom: 1.5em;
}

.vedichome img {
  width: 100%;
  border-radius: 50%;
}

.audio .category {
  margin-bottom: 30px;
}

.audio .category h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text);
}

.audio .audio-item {
  background: var(--card-bg);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.audio .details {
  flex: 1;
}

.audio .title {
  font-weight: bold;
  margin-bottom: 5px;
}

.audio .meta {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 1em;
}
.audio .meta div {
  display: flex;
  align-items: center;
  gap: 3px;
}

.audio .buttons {
  display: flex;
  gap: 10px;
}

.audio button,
.audio a.download-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  min-width: 120px;
}

.audio .play-btn {
  background: var(--primary);
  color: #fff;
}

.audio .play-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.audio .download-btn {
  background: #28a745;
  color: #fff;
}

.audio-content ul {
  padding-left: 1.2em;
  margin-block: 1em;
}

.audio-content h2 {
  margin-block: 1em;
}

.audio-section {
  padding: 60px 0px;
  color: #000;
  background-color: var(--bg-dark);
}

/* Method 1: Rotating Gradient Border */
.gradient-border-1 {
  position: relative;
  padding: 6px;
  border-radius: 15px;
  background: linear-gradient(45deg, #ff6200, #ff8c00, #ff6262, #ff0080);
  background-size: 300% 300%;
  animation: gradientRotate 1s ease-in-out infinite;
}

.gradient-border-1 img {
  width: 100%;
  object-fit: cover;
  border-radius: 11px;
  display: block;
}

@keyframes gradientRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Method 2: Spinning Border Effect */
.gradient-border-2 {
  position: relative;
  width: 208px;
  height: 208px;
  border-radius: 15px;
  overflow: hidden;
}

.gradient-border-2::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #96ceb4,
    #feca57,
    #ff9ff3,
    #ff6b6b
  );
  animation: spin 4s linear infinite;
  z-index: -1;
}

.gradient-border-2 img {
  position: relative;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 11px;
  margin: 4px;
  z-index: 1;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Method 3: Pulsing Gradient Border */
.gradient-border-3 {
  position: relative;
  padding: 1px;

  border-radius: 50%;
  background: linear-gradient(45deg, #fb7030, #ff4d00, #fec300);
  background-size: 400% 400%;
  animation: gradientPulse 0.5s ease-in-out infinite alternate;
}

.gradient-border-3 img {
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.8;
  display: block;
}

@keyframes gradientPulse {
  0% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  100% {
    background-position: 100% 50%;
    filter: brightness(1.2);
  }
}

/* Method 4: Multi-layer Rotating Border */
.gradient-border-4 {
  position: relative;
  width: 208px;
  height: 208px;
  border-radius: 15px;
  overflow: hidden;
}

.gradient-border-4::before,
.gradient-border-4::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
}

.gradient-border-4::before {
  background: conic-gradient(
    from 0deg,
    transparent,
    #ff0080,
    transparent,
    #00ff80,
    transparent
  );
  animation: spin 3s linear infinite;
}

.gradient-border-4::after {
  background: conic-gradient(
    from 90deg,
    transparent,
    #0080ff,
    transparent,
    #ff8000,
    transparent
  );
  animation: spin 3s linear infinite reverse;
}

.gradient-border-4 img {
  position: relative;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 11px;
  margin: 4px;
  z-index: 1;
}

/* Method 5: Neon Glow Effect */
.gradient-border-5 {
  position: relative;
  padding: 4px;
  border-radius: 15px;
  background: linear-gradient(
    45deg,
    #00ff88,
    #00aaff,
    #aa00ff,
    #ff0088,
    #00ff88
  );
  background-size: 300% 300%;
  animation: neonGlow 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.3));
}

.gradient-border-5 img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 11px;
  display: block;
}

@keyframes neonGlow {
  0%,
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.3));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 30px rgba(170, 0, 255, 0.5));
  }
}

/* Method 6: Wave Border Effect */
.gradient-border-6 {
  position: relative;
  padding: 4px;
  border-radius: 15px;
  background: linear-gradient(
    90deg,
    #ff006e,
    #8338ec,
    #3a86ff,
    #06ffa5,
    #ffbe0b,
    #fb5607,
    #ff006e
  );
  background-size: 500% 100%;
  animation: waveMove 4s ease-in-out infinite;
}

.gradient-border-6 img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 11px;
  display: block;
}

@keyframes waveMove {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
}

@keyframes floatBasic {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes waveFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(1deg);
  }
  50% {
    transform: translateY(-25px) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes oceanWave {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  16.66% {
    transform: translateY(-10px) translateX(5px) rotate(1deg);
  }
  33.33% {
    transform: translateY(-20px) translateX(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) translateX(-5px) rotate(-1deg);
  }
  66.66% {
    transform: translateY(-25px) translateX(0px) rotate(0deg);
  }
  83.33% {
    transform: translateY(-10px) translateX(3px) rotate(0.5deg);
  }
}

@keyframes bubbleFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  25% {
    transform: translateY(-30px) scale(1.02);
  }
  50% {
    transform: translateY(-45px) scale(0.98);
  }
  75% {
    transform: translateY(-30px) scale(1.01);
  }
}

@keyframes gentleSway {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  20% {
    transform: translateY(-8px) translateX(-3px) rotate(-0.5deg);
  }
  40% {
    transform: translateY(-15px) translateX(0px) rotate(0deg);
  }
  60% {
    transform: translateY(-20px) translateX(3px) rotate(0.5deg);
  }
  80% {
    transform: translateY(-12px) translateX(-1px) rotate(-0.2deg);
  }
}

/* Basic Floating Effect */
.float-basic {
  animation: floatBasic 3s ease-in-out infinite;
}
/* Wave Motion Effect */
.float-wave {
  animation: waveFloat 4s ease-in-out infinite;
} /* Ocean Wave Effect */
.float-ocean {
  animation: oceanWave 6s ease-in-out infinite;
}

/* Bubble Float Effect */
.float-bubble {
  animation: bubbleFloat 5s ease-in-out infinite;
}

/* Gentle Sway Effect */
.float-sway {
  animation: gentleSway 8s ease-in-out infinite;
}

.isinput input {
  display: grid;
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  outline: none;
}

.gender {
  max-width: 250px;
  margin: auto;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;

  border-radius: 10px;
}

.gender img {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin: 0px;
  padding: 0px;
}

.itsplanet li::before {
  content: "➔ "; /* Right arrow */
  color: #333; /* Arrow color (change as needed) */
  font-weight: bold;
  margin-right: 6px;
}

.itsplanet ul {
  list-style: none;
  padding-left: 0;
  background-color: var(--card-bg);
  padding: 1em;
  border-radius: 10px;
}

.itsplanet h2 {
  text-transform: capitalize;
  margin-top: 1em;
}

.pastlife {
  background-color: var(--card-bg);
  padding: 1em;
  border-radius: 10px;
}

/* Container */
.match_container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  text-align: left;
}

/* Column */
.match_col {
  flex: 1;
  min-width: 280px;
}

.match_col > h3 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0px;
  padding: 0;
  margin-block: 1em;
}

.match_col:nth-child(1) {
  border-right: 1px solid var(--border);
  padding-right: 1em;
}
.match_selectGroup {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Labels */
.match_col label {
  display: block;
  font-weight: bold;
  margin: 8px 0 4px;
}

/* Inputs */
.match_col input,
.match_col select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: var(--background);
  color: var(--text);
}

/* Suggestions dropdown */
.match_suggestions {
  border: 1px solid var(--border);
  max-height: 150px;
  overflow-y: auto;
  background: var(--bg1);
  color: var(--text);
  position: absolute;
  z-index: 1000;
  max-width: 260px;
}

.match_suggestions div {
  padding: 8px;
  cursor: pointer;
}

.match_suggestions div:hover {
  background: var(--primary);
  color: #fff;
}

.kundalimatching {
  background: var(--card-bg);
  padding: 16px 2em;
  border-radius: 12px;
  box-shadow: 0 2px 6px var(--shadow);

  margin: 0 auto 2em;
  text-align: center;
}

.alert-danger,
.text-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

.alert-success,
.text-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

.alert-danger h2,
.alert-success h2 {
  padding: 0;
  margin: 0;
}

.chartimage {
  display: flex;
  gap: 10px;
  text-align: center;
}

.chartimage h3 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0px;
  padding: 0;
  justify-content: center;
}

.chartimage img {
  width: 100%;
}

.ch_table_responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth scroll on mobile */
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.ch_table_responsive table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* ensures scroll on very small screens */
}

.ch_table_responsive th,
.ch_table_responsive td {
  padding: 10px;
  text-align: left;
  border: 1px solid var(--border);
  font-size: 15px;
  white-space: nowrap; /* prevents breaking words */
}

.ch_table_responsive thead {
  background: var(--footer-bg);
  position: sticky;
  top: 0;
  z-index: 1;
}

.ch_table_responsive th {
  font-weight: 600;
  color: var(--text);
}

.ch_table_responsive tr:nth-child(even) {
  background: var(--card-bg);
}

.tab_buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab_button {
  padding: 8px 10px;

  background: var(--card-bg);
  cursor: pointer;
  transition: background 0.3s;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.tab_button:hover {
  background: #e0e0e0;
}

.tab_button.active {
  background: var(--primary);
  color: #fff;
  font-weight: bold;
}

.tab_content {
  display: none;

  animation: fadeEffect 0.4s;
}

.tab_content.active {
  display: block;
}

/* Smooth fade */
@keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.latter {
  font-size: 80px;
  background-color: #fff45aff;
  padding: 10px 10px 0 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  aspect-ratio: 1/1;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.isname {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 1em;
}

.isname h2 {
  margin: 0;
  padding: 0;
  margin-bottom: 10px;
}

/* Card styling */
.daypanchang .card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  background: var(--card-bg);
  margin-top: 1em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.daypanchang .card h4 {
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--text);
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

/* ROW system */
.daypanchang .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.daypanchang [class*="col-"] {
  padding: 0 8px;
  box-sizing: border-box;
}

/* Column widths */
.daypanchang .col-sm-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.daypanchang .col-sm-4 {
  flex: 0 0 33.33%;
  max-width: 33.33%;
}

.daypanchang .col-sm-8 {
  flex: 0 0 66.66%;
  max-width: 66.66%;
}

.daypanchang .col-xs-5 {
  flex: 0 0 40%;
  max-width: 40%;
}

.daypanchang .col-xs-7 {
  flex: 0 0 60%;
  max-width: 60%;
}

/* Pan-row */
.daypanchang .pan-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 6px;
  font-size: 15px;
}

.daypanchang .pan-row b {
  color: var(--text);
}

/* Table styling */
.daypanchang .table-responsive {
  overflow-x: auto;
}

.daypanchang .table-responsive table {
  background-color: var(--card-bg);
}

.twocol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.twocol .audio-item {
  display: block;
}

.pagination {
  margin: 20px 0;
  text-align: center;
}

.pagination a {
  display: inline-block;
  padding: 8px 12px;
  margin: 2px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  border-radius: 4px;
}

.pagination a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  cursor: default;
  pointer-events: none;
}

.pagination a:hover {
  background: var(--card-bg);
  color: var(--text);
}

.product_container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Card */
.product_card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image */
.product_image {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 6px;
  aspect-ratio: 1/1;
}

/* Title */
.product_title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 20px;
}

/* Price */
.product_price {
  font-size: 16px;
  font-weight: bold;
  color: #d32f2f;
  margin-bottom: 6px;
}

/* Stars & Reviews */
.product_rating {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

/* Button */
.product_link {
  display: inline-block;
  text-decoration: none;
  background: #ff9900;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s ease;
}

.product_link:hover {
  background: #e68a00;
}

.related_card_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.related_card_grid a {
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 12px var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background-color: var(--card-bg);
  border: 1px solid var(--border);
}

.related_card_grid img {
 
  aspect-ratio: 1/1;
  width: 80px;
}

.related_card_grid a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow);
}

.related_card_grid h2 {
  margin: 0px;
  padding: 0px;
  font-size: 1.1rem;
}

.related_card_grid p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  opacity: 0.8;
}

.headingtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

/* default smooth continuous spin */
.spin {
  display: inline-block; /* allow transform on inline SVG/icon */
  transform-origin: 50% 50%; /* center of the element */
  will-change: transform; /* hint for better performance */
  --spin-duration: 1.2s; /* change this to speed up / slow down */
  --spin-direction: normal; /* use 'reverse' to spin the other way */
  animation: ch-spin var(--spin-duration) linear infinite;
}

/* optional smaller/faster variants */
.spin--slow {
  --spin-duration: 3s;
}
.spin--fast {
  --spin-duration: 0.6s;
}
.spin--rev {
  --spin-direction: reverse;
  animation-direction: reverse;
}

@keyframes ch-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spin {
    animation: none;
  }
}

.relatedextra {
  background-color: var(--card-bg);
  padding: 1px 30px 30px 30px;
  border-radius: 10px;
  margin-block: 1em;
}

.relatedextra img {
  width: 100%;
  border-radius: 10px;
}

.textdatamain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}
.textdata {
  padding: 30px 0px 0px 0px;
  background-image: radial-gradient(
    circle at center right,
    rgba(253, 97, 39, 0.55) 0%,
    rgba(253, 97, 39, 0.55) 14.286%,
    rgba(251, 108, 38, 0.55) 14.286%,
    rgba(251, 108, 38, 0.55) 28.572%,
    rgba(249, 118, 37, 0.55) 28.572%,
    rgba(249, 118, 37, 0.55) 42.858%,
    rgba(247, 129, 37, 0.55) 42.858%,
    rgba(247, 129, 37, 0.55) 57.144%,
    rgba(245, 140, 36, 0.55) 57.144%,
    rgba(245, 140, 36, 0.55) 71.43%,
    rgba(243, 150, 35, 0.55) 71.43%,
    rgba(243, 150, 35, 0.55) 85.716%,
    rgba(241, 161, 34, 0.55) 85.716%,
    rgba(241, 161, 34, 0.55) 100.002%
  );
  color: #1d0032;
  background-size: 200% 200%;
  animation: moveBg 20s linear infinite;
}

@keyframes moveBg {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.textdata p {
  margin-block: 1em;
}

.textdatamain a {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background-color: var(--card-bg);
  color: var(--text);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  gap: 10px;
}
.textdatamain img {
  width: 50px;
  aspect-ratio: 1/1;
  border-radius: 50%;
}

.textdatamain h3,
.textdatamain span {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  max-width: 180px;
}
.textdatamain h3 {
  font-size: 16px;
}
.textdatamain span {
  font-size: 14px;
}

.textdataimg img {
  width: 100%;
}

.itsflex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;
}

.hideonpc {
  display: none;
}

.astro-result {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;

  margin: 20px auto;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.astro-heading {
  color: var(--primary);
  text-align: center;
  margin-bottom: 15px;
}

.astro-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.astro-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.astro-list li:last-child {
  border-bottom: none;
}

.astro-prediction {
  margin-top: 20px;
  padding: 15px;
  background: var(--background);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
}

.astro-prediction h3 {
  margin-top: 0;
  color: var(--primary);
}

/* Each Block/Card */

.LyricsBlock {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 10px var(--shadow);
  padding: 15px 20px;
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

.LyricSpecial {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 10px var(--shadow);
  padding: 15px 20px;
  margin-bottom: 20px;
  overflow-wrap: break-word;
  border: 2px dashed var(--primary);
}

/* Headings */
.LyricsHeading {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Lyrics Paragraphs */
.LyricsPart p {
  font-size: 1rem;
  margin-bottom: 8px;
  text-align: center;
}

/* Subheadings */
.subHeading,
.subsHeading {
  font-size: 0.95rem;
  text-align: center;
  margin-top: 12px;
  color: var(--text-secondary);
}

.subHeading div,
.subsHeading div {
  margin-bottom: 4px;
}

.LyricsEnd {
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 15px;
  color: var(--primary);
}

.mtop {
  margin-top: 10px;
}

.brahma,
.abhijit,
.lagnatable div {
  text-align: center;
  padding: 2em 1em;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: rgba(255, 68, 0, 0.306);
  margin-block: 1em;
  font-size: 2em;
  font-weight: 700;
}

.brahma h2,
.abhijit h2,
.lagnatable div h2 {
  font-size: 0.8em !important;
  font-weight: 700;
}

.brahma p,
.abhijit p {
  font-size: 1em !important;
  font-weight: 700;
  margin-top: 1em;
}

.gowripanchangam h2 {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.itsgowripanchangam {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.itsgowripanchangam ul {
  background: var(--card-bg);
  padding: 10px;
  border: 1px solid var(--border);
  list-style: none;
  margin: 0;
  border-radius: 10px;
}

.itsgowripanchangam ul li {
  margin-bottom: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.itsgowripanchangam ul li:last-child {
  border-bottom: none;
}

.itsgowripanchangam ul li:first-child {
  font-size: 20px;
}

.gowripanchangam .iamnote {
  text-align: center;
  margin-top: 5px;
}

.vandanasCollection .Vandana {
  background-color: var(--card-bg);
  border-left: 4px solid var(--primary);
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
}

.vandanasCollection .Vandana p {
  margin: 6px 0;
  font-size: 1.05rem;
  color: var(--text);
  text-align: justify;
}

.vandanasCollection .Vandana.sanskrit p {
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 2;
  text-align: center;
}

.vandanasCollection .Vandana.hinglish p {
  font-size: 1rem;
  text-align: justify;
}

.vandanasCollection section h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 5px;
}

.vandanasCollection section h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-top: 15px;
  margin-bottom: 8px;
}

#goToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background: 0;
  cursor: pointer;
  border: 0;
}

#goToTopBtn svg {
  fill: var(--primary);
  background-color: #fff;
  border-radius: 50%;
  padding: 1px;
}

#goToTopBtn svg:hover {
  fill: var(--bg-dark);
}

.newslater .heading {
  font-size: 20px;
  font-weight: 600;
}
.newslater .form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.newslater input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease;
}

.newslater input[type="email"]:focus {
  border-color: var(--primary);
}

.newslater button {
  padding: 10px 18px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 120px;
}

.newslater button:hover {
  background: #e03e00;
}

.newslater button:disabled {
  background: #c7c7c7;
  pointer-events: none;
  cursor: default;
}

.hero_btn {
  background-color: var(--bg-dark);
  color: #330e00;
  padding: 5px 20px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.hero_btn:hover {
  background-color: #075e54;
  color: #fff;
}

.hero_btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 991px) {
  .shorttext {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
  }

  .view_main p:first-of-type,   .zodiac-signs p:first-of-type {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
  }

  .mobile-h2,
  .view_main h1, .main-title {
    font-size: 1.3rem;
    line-height: normal;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px var(--shadow);
    border-top: 1px solid var(--border);
    z-index: 999;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.active {
    max-height: 300px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 15px 0;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 20px;
    transition:
      background-color 0.3s ease,
      color 0.3s ease;
  }

  .nav-link:hover {
    background-color: var(--primary);
    color: white;
  }

  .nav-link::after {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
  
    .grid-container.layout-40-60 {
    grid-template-columns: 40% 60%;
  }
  
  
  .grid-container.layout-30-70 {
    grid-template-columns: 30% 70%;
  }

  .grid-container.layout-70-30 {
    grid-template-columns: 70% 30%;
  }

  .column-1,
  .column-2 {
    grid-column: auto;
  }

  .card-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-about {
    grid-column: auto;
  }
}

@media screen and (max-width: 480px) {
  .ch_form {
    flex-direction: column;
    align-items: stretch;
  }

  .ch_form .submit_button {
    width: 100%;
  }
  .suns {
    flex-direction: column;
    gap: 15px;
    margin-top: 2em;
  }

  .isDate {
    min-width: 100% !important;
  }

  .ch_table_responsive th,
  .ch_table_responsive td {
    padding: 6px;
    font-size: 13px;
  }

  .ch_table .table-bordered th,
  .ch_table .table-bordered td {
    padding: 8px 4px;
    min-width: 90px;
  }

  .ch_table .small-text {
    font-size: 9px;
  }

  .ch_table thead th {
    font-size: 11px;
    padding: 10px 4px;
  }

  .LyricsHeading {
    font-size: 1rem;
  }

  .LyricsPart p {
    font-size: 0.9rem;
  }

  .subHeading,
  .subsHeading {
    font-size: 0.85rem;
  }

  .zodiac-signs-links {
    grid-template-columns: repeat(2, 1fr);
    padding: 5px;
    gap: 15px;
  }

  .zodiac-sign {
    padding: 12px;
  }

  .zodiac-sign .zodiac-image {
    width: 55px;
    height: 55px;
  }

  .zodiac-sign p {
    font-size: 12px;
  }
}

/* Blurred background overlay */
.promo_modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.604);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: promo_fadeInBg 0.5s ease forwards;
}

/* Modal Box */
.promo_box {
  background: linear-gradient(145deg, #ffffff, #f9f9f9);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  padding: 30px 25px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  color: #222;
  position: relative;
  transform: scale(0.8);
  opacity: 0;
  animation: promo_zoomIn 0.6s ease forwards;
}

/* Header */
.promo_header {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  animation: promo_bounce 2s infinite;
}

/* Body */
.promo_body {
  font-size: 1rem;
  color: #333;
}

/* Footer button */
.promo_btn {
  background: var(--primary);
  color: #fff;
  border: none;
  outline: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.promo_btn:hover {
  background: #e73370;
  transform: scale(1.05);
}

/* Close button */
.promo_close {
  position: absolute;
  top: -5px;
  right: -2px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #ffffff;
  cursor: pointer;
  transition: 0.3s;
  background-color: #bb2c2c;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo_close:hover {
  color: #ffdbe7;
  transform: rotate(90deg);
}

/* Animations */
@keyframes promo_fadeInBg {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes promo_zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes promo_bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.finder-box {
  background: var(--card-bg);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 20px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.finder-box h3 {
  background: var(--primary);
  border-radius: 5px;
  text-align: center;
  padding: 8px 0;
  margin-bottom: 15px;
  color: #fff;
}

.finder-box label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.finder-box input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.finder-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(211, 49, 0, 0.4);
}

.finder-box .tip {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin-top: 5px;
}

.finder-box .result-box {
  display: none;
  color: #222;
  background: #fff8e1;
  border: 1px solid #c7a74d;
  border-radius: 6px;
  padding: 12px;
  margin-top: 15px;
}

.finder-box .result-box h4 {
  color: #004d40;
  margin-bottom: 8px;
}

.finder-box .result-box p {
  margin: 0;
  padding: 4px 0;
}

.homeRsult {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 10px var(--shadow);
  padding: 15px 20px;
  overflow-wrap: break-word;
  border: 1px solid var(--border);
  text-align: center;
}

.homeRsult h3 {
  padding: 0px;
  margin: 0px;
  font-size: 1.8rem;
}

.homeRsult strong {
  color: var(--primary);
  text-transform: uppercase;
}

.api_result .alert {
  padding: 1rem;
  background: #d9edf7;
  border: 1px solid #bce8f1;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.api_result .lead {
  margin: 0;
  font-size: 1.1em;
}

.api_result .table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: var(--card-bg);
}

.api_result .table th,
.api_result .table td {
  padding: 0.5rem;
  border: 1px solid #ddd;
}

.api_result .table th {
  background: var(--bg-dark);
  font-weight: bold;
  color: #fff;
}

.api_result .chart_and_text {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.api_result .box1,
.api_result .box2 {
  flex: 1;
  background-color: var(--card-bg);
  padding: 1.5em 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.api_result .box_heading {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.api_result .chart_table {
  width: 100%;

  margin: 0 auto 1rem;
  border-collapse: collapse;
  aspect-ratio: 1;
}

.api_result .chart_table td {
  border: 2px solid var(--border);
  width: 25%;
  height: 25%;
  text-align: center;
  vertical-align: middle;
  position: relative;
  padding: 0.5rem 0.25rem;
}

.api_result .topContent {
  font-size: 0.9em;
  color: #00f;
  margin-bottom: 0.25rem;
}

.api_result .planetName {
  font-size: 0.75em;
  color: #d2691e;
}

.api_result .text_paragraph {
  font-size: 0.85em;
  margin-top: 0.5rem;
}

.api_result .info_box {
  background: var(--card-bg);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.api_result .respoincive_table {
  overflow-x: auto;
}

.api_result .text_heading {
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.api_result .text_heading:first-child {
  margin-top: 0;
}


.flexGroup{
    display: flex;
    justify-content: space-between;
    gap:10px;
}

.flexGroup > div:first-child {
  flex-basis: 100%;
}

.flexGroup .genderOptions label {
    padding: 6px 15px;
}



.search {
  position: relative;
  width: 100%;
  margin: 1em auto;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 1em 10px;
  box-sizing: border-box;
}

.search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  background: none;
  color: var(--text);
}

.search input:focus {
  border-color: var(--primary);
  outline: none;
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
}

#search-results .result-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

#search-results .result-item:hover {
  background-color: var(--primary);
}

#search-results p.no-results {
  padding: 10px 12px;
  color: var(--text-secondary);
  text-align: center;
}

.w100 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Slider wrapper ── */
.slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin-top:10px;
  background: transparent;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  /* allow vertical scroll, intercept horizontal */
}

.slider-wrap:active {
  cursor: grabbing;
}

/* ── Track ── */
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slider-track.no-transition {
  transition: none;
}

/* ── Individual slides ── */
.slide {
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.slide a {
  display: block;
  height: 100%;
}

/* ── Nav buttons ── */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.slider-prev {
  left: 12px;
}

.slider-next {
  right: 12px;
}

/* ── Dots ── */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.slider-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dots button.active {
  width: 22px;
  border-radius: 4px;
  background: #333;
}

/* ── Mobile: hide nav arrows on small screens ── */
@media (max-width: 480px) {
  .slider-btn {
    display: none;
  }

  .slider-wrap {
    border-radius: 0px;
    margin-top:0px;
  }
}

.grid-container {
  display: grid;
  gap: 20px;
}

.layout-50-50 {
  grid-template-columns: 1fr 1fr;
}

.main_link {
  text-decoration: none;
  display: block;
}

.main_link img {
  width: 100%;
 
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  border-radius: 8px;
}

.img1 img {
  aspect-ratio: auto;
}
.img2 img {
  aspect-ratio: 25/9;
}
.img3 img {
  aspect-ratio: 1.1/1;
}
.margintop {
  margin-top: 20px;
}

.vflex {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.language-selector select {
  padding: 5px;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.language_box .language-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-direction: column;
  text-align:center;
}

.goog-te-banner-frame,
.skiptranslate {
  display: none !important;
  height: 0px;
  width: 0px;
}

body {
  top: 0 !important;
}

h2 strong,
h3 strong {
  font-weight: bold;
}


@media screen and (max-width: 768px) {
    
    .zodiac-sign-detail {
  
  padding: 10px;
  border: var(--border) solid 1px;
  border-radius: 12px;
  
}


  .mtop {
    margin-top: 20px;
  }
  .hero-panchang {
    background-color: var(--bg-dark);
    padding: 10px;
    border-radius: 0px;
    margin-inline: 0px;
    font-size: 13px;
  }

  .hero {
    padding: 0px;
  }
  .hero-right {
    margin-top: 1em;
  }

  .btn {
    padding: 8px 20px;
    font-size: 1rem;
  }

  .vedicLink {
    color: #000;
    padding: 6px 11px;
    font-size: 14px;
    min-width: auto;
    gap: 2px;
  }

  .match_container {
    flex-direction: column;
  }

  .hero_btn span {
    display: none;
  }

  .hero_btn {
    background-color: transparent;
    padding: 0px;
    border: none;
    background-color: none;
  }
  .hero_btn svg {
    fill: #000;
    width: 30px;
    height: 30px;
  }

  .hero_btn:hover {
    background: none;
    border: none;
    background-color: none;
    color: var(--primary);
  }

  .match_col:nth-child(1) {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0px;
    padding-bottom: 3em;
  }

  .kundalimatching {
    padding: 16px 1em 16px 1em;
  }
  .grah-gochar li {
    padding: 10px;
  }

  .grah-gochar li span:first-child {
    font-size: 1.1em;
  }
  .LyricsHeading {
    font-size: 1.1rem;
  }

  .LyricsPart p {
    font-size: 0.95rem;
  }

  .subHeading,
  .subsHeading {
    font-size: 0.9rem;
  }

  .LyricSpecial,
  .LyricsBlock {
    padding: 12px 15px;
  }
  .itsgowripanchangam {
    grid-template-columns: 1fr; /* full width on mobile */
  }
  .vandanasCollection .Vandana {
    padding: 12px 15px;
  }
  .vandanasCollection .Vandana p {
    font-size: 1rem;
  }
  .vandanasCollection section h2 {
    font-size: 1.5rem;
  }
  .vandanasCollection section h3 {
    font-size: 1.1rem;
  }

  .ch_table_responsive th,
  .ch_table_responsive td {
    padding: 8px;
    font-size: 14px;
  }

  .daypanchang .col-sm-6,
  .daypanchang .col-sm-4,
  .daypanchang .col-sm-8,
  .daypanchang .col-xs-5,
  .daypanchang .col-xs-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .daypanchang .pan-row {
    flex-direction: column;
  }

  .daypanchang .pan-row > div {
    width: 100% !important;
  }

  .cards .section-title {
    font-size: 30px;
    margin: 0px;
  }
  .card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .card-grid a {
    padding: 8px;
    display: flex;
    align-items: center;

    min-height: 80px;
  }

  .card-grid img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  .card-grid h2 {
    margin: 0px;
    padding: 0px;
    font-size: 13px;
  }

  .card-grid p {
    display: none;
  }

  .textdata {
    padding: 30px 0px 20px 0px;
  }
  .grid-container {
    padding: 0;
  }
  .textdatamain h3,
  .textdatamain span {
    max-width: auto;
  }
  .hideonpc {
    display: inline;
  }
  .textdatamain a {
    justify-content: space-between;
  }

  .vedichome h2 {
    margin-bottom: 0.1em;
    font-size: 2em;
  }

  .section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
  }

  .hero-left,
  .hero-right {
    flex: 0 0 100%;
  }
  .nakshatra-content {
    padding: 0px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
  }

  .nakshatra-content table {
    font-size: 0.75rem;
  }

  .view {
    flex-direction: column; /* Stack items vertically on mobile */
  }
  .view_one,
  .view_two {
    width: 100%; /* Make both sections full width on mobile */
  }
  
  .sign_related {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-block: 2em;
}

  .sign_related a {
    gap: 2px;

    padding: 10px 5px;
    font-size: 15px;
    min-width: 130px;
  }

  .container {
    width: 100%;

    padding: 0 1em;
  }

  .zodiac-content {
    max-height: 500px;
  }

  .fade-overlay {
    height: 150px;
  }

  .view_content {
    flex-direction: column;
    gap: 10px; /* Optional: smaller gap on mobile */
  }

  .view_main {
    width: 100%;
    flex: none;
  }

  .view_sidebar {
    width: 100%;
    position: relative; /* Remove sticky on mobile */
    top: auto;
  }

  .zodiac-form .zf-row {
    flex-direction: column;
  }
  .zodiac-form .zf-col {
    width: 100%;
  }
  .zodiac-form .zf-heart {
    margin: 20px 0;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "first first"
      "second third";
  }

  .footer-content > div:nth-child(1) {
    grid-area: first;
  }
  .footer-content > div:nth-child(2) {
    grid-area: second;
  }
  .footer-content > div:nth-child(3) {
    grid-area: third;
  }

  .tithi_content {
    grid-template-columns: 1fr;
  }
  /* City full width */
  .main_ch_form .ch_flex > div:first-child {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Month + Year half width each */
  .main_ch_form .ch_flex > div.year,
  .main_ch_form .ch_flex > div.month {
    flex: 0 0 calc(50% - 12px);
    max-width: 50%;
  }

  .hideonmobile {
    display: none;
  }

  .table-responsive .ch_table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }

  .ch_table .table {
    min-width: 700px; /* Ensure table doesn't shrink too much */
  }

  .ch_table .table-bordered th,
  .ch_table .table-bordered td {
    padding: 10px 6px;
    min-width: 100px;
  }

  .ch_table .small-text {
    font-size: 10px;
    text-align: left;
    margin-top: 6px;
  }

  .ch_table thead th {
    font-size: 12px;
    padding: 12px 6px;
  }
}








.language-open-btn{
    background-color: none;
    background: none;
    padding: 0px;
    margin: 0px ;
    border: none;
      color: var(--primary);
    font-size: 25px;
    cursor: pointer;
}



 
.ch-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.ch-backdrop.ch-open {
  opacity: 1;
  pointer-events: auto;
}
 
.ch-modal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(.95) translateY(10px);
  transition: transform .22s ease, opacity .22s ease;
  opacity: 0;
}
.ch-backdrop.ch-open .ch-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}
 
/* shake = outside click "error" */
@keyframes ch-shake {
  0%,100% { transform: scale(1) translateX(0); }
  20%      { transform: scale(1) translateX(-7px); }
  40%      { transform: scale(1) translateX(7px); }
  60%      { transform: scale(1) translateX(-5px); }
  80%      { transform: scale(1) translateX(5px); }
}
.ch-modal.ch-shake { animation: ch-shake .35s ease; }
 
.ch-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.ch-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
}
 
/* close button — pulse highlight on outside click */
.ch-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  color: #888;
  line-height: 1;
  transition: background .15s, color .15s, box-shadow .15s;
  flex-shrink: 0;
}
.ch-close:hover { background: #f3f4f6; color: #111; }
 
@keyframes ch-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.7);  background: #fee2e2; color:#dc2626; }
  70%  { box-shadow: 0 0 0 8px rgba(239,68,68,0); background: #fee2e2; color:#dc2626; }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0);   background: none;    color:#888; }
}
.ch-close.ch-pulse { animation: ch-pulse .55s ease forwards; }
 
.ch-modal-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
  font-size: .93rem;
  line-height: 1.6;
  color: #374151;
}
 
 .chheading{
     margin:1em 0px 0px 0px;
     padding:0px;
     text-align:center;
 }
 
/* Grid Layout */
.ritu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}


/* Card */
.ritu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px var(--shadow);
  transition: 0.2s ease;
}

.ritu-card:hover {
  transform: translateY(-3px);
}

/* Header */
.ritu-header {
  background: var(--bg-dark);
  color: #000;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 15px;
}

/* Body */
.ritu-body {
  padding: 12px;
  font-size: 14px;
  color: var(--text);
}

.ritu-body p {
  margin-bottom: 10px;
  line-height: 1.4;
  border-bottom:1px solid #f3f4f7;
  padding-bottom:6px;
}

.ritu-body p:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ritu-body span {
 
  font-weight: 600;
  color: var(--text);
}

.iscenter {
  text-align: center;
}


.sbs{
     display: flex;
  justify-content: center;
  align-items: center;
  gap:10px;
}

/* Mobile → 1 per row */
@media (max-width: 768px) {
    
    .sbs{
     flex-direction: column;
}


  .ritu-grid {
    grid-template-columns: 1fr;
  }
}

.ch_download_card {
  max-width: 420px;
  margin: 20px auto;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 25px var(--shadow);
  text-align: center;
  animation: chFadeUp 0.4s ease;
}

.ch_download_icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
}

.ch_download_icon svg {
  width: 100%;
  height: 100%;
  stroke: #28a745;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: chStroke 0.6s ease forwards;
}

.ch_download_content h3 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.ch_download_content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 8px 0 16px;
}

.ch_download_btn {
  display: inline-block;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}

.ch_download_btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Animation */
@keyframes chFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chStroke {
  from {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.alert_warning {
    background-color: #fffbeb; /* Light amber */
    color: #92400e;            /* Deep brown-orange */
    border-left: 5px solid #f59e0b; /* Bright amber accent */
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-family: sans-serif;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

/* Optional: Add a warning icon using a pseudo-element */
.alert_warning::before {
    content: "⚠️";
    margin-right: 12px;
    font-size: 1.2rem;
}



 .eclipse-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1.5rem;
        }
        .eclipse-card {
            background: #ffffff;
            border-radius: 10px;
            padding: 1.5rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            border-top: 5px solid #3498db; /* Default border */
            transition: transform 0.2s ease;
        }
        .eclipse-card:hover {
            transform: translateY(-5px);
        }
        /* Dynamic Type Colors */
        .eclipse-card.eclipse-solar { border-color: #f39c12; }
        .eclipse-card.eclipse-lunar { border-color: #7f8c8d; }
        
        .eclipse-card h2 {
            margin: 0 0 0.5rem 0;
            font-size: 1.25rem;
            color: #2c3e50;
        }
        .eclipse-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: bold;
            text-transform: uppercase;
            margin-bottom: 1rem;
        }
        .eclipse-badge.eclipse-solar { background: #fef0d9; color: #d35400; }
        .eclipse-badge.eclipse-lunar { background: #eaeded; color: #34495e; }
        
        .eclipse-info-row {
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            line-height: 1.4;
        }
        .eclipse-info-row strong {
            color: #555;
            display: inline-block;
            width: 120px;
        }
        .eclipse-divider {
            height: 1px;
            background: #eee;
            margin: 1rem 0;
            border: none;
        }
        .eclipse-hindi-text {
            font-size: 0.95rem;
            color: #444;
        }


@media (max-width: 768px) {
    .main_link img {
        height:auto;
    }
    
    .flexGroup{ gap:0px;
    flex-direction: column;
}

  .api_result .chart_and_text {
    flex-direction: column;
  }
}