/* ===== Reset & Body ===== */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #fff8f1;
  color: #333;
}

/* ===== Mobile Menu Enhancements ===== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #5d4037;
  cursor: pointer;
}

/* Mobile responsive menu */
@media (max-width: 768px) {
  nav ul {
    display: none !important;   /* Force close by default */
    flex-direction: column;
    background: #f8f4f0;
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    display: flex !important;  /* Show only when active */
  }

  nav ul li {
    text-align: center;
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }
}
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #5d4037;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    display: none !important;
    flex-direction: column;
    background: #f8f4f0;
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    display: flex !important;
  }

  nav ul li {
    text-align: center;
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }
}


/* ===== Navigation Bar ===== */
nav {
  background: #f8f4f0; /* Lightest brownish off-white */
  color: #5d4037; /* Deep brown text for logo */
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* subtle depth */
}
nav .logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 40px;
  background: linear-gradient(90deg, #d63384, #5d4037);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav ul li a {
  color: #5d4037;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}
/* ===== Hero Section ===== */
.hero {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(to right, #fff0f5, #ffe4e1); /* Light pink gradient */
  color: #333;
}
.hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}
.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

.hero form {
  display: flex;
  flex-direction: column;
  align-items: center;  /* Form center me */
  gap: 20px;
}

.hero .form-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}


.hero form button {
  margin-top: 10px;
  width: 240px;         /* Same as input width */
  padding: 10px;
  text-align: center;
}

.hero .form-row input {
  width: 240px;         /* Fixed width */
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  text-align: center;   /* Input text center */
}

.hero .form-row label {
  align-self: flex-start; /* Label left aligned */
  margin-left: calc(50% - 120px); /* 240px input width / 2 = 120px */
  margin-bottom: 5px;
  font-size: 14px;
  color: #444;
}

.hero button {
  background: white;
  color: #ff9800;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #ff9800;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  width: 220px;
  transition: background 0.3s;
}

.hero button:hover {
  background: #ff9800;
  color: white;
}
.hero input[type="text"],
.hero input[type="date"] {
  width: 200px;
}
.card-grid a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ===== Generic Section Wrapper ===== */
.section {
  padding: 60px 20px;
  text-align: center;
}
.section h2 {
  font-size: 28px;
  margin-bottom: 30px;
}
.number-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 25px 0;
}
.number-tabs button {
  background: #fff0f5;
  border: 2px solid #d63384;
  color: #d63384;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}
.number-tabs button:hover {
  background: #d63384;
  color: white;
}
.store-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  font-size: 15px;
}
.store-btn.android {
  background: transparent;
}
.store-btn.apple {
  background: transparent;
}
.store-btn img {
  width: 65px;
  height: 65px;
}
#number-content {
  margin-top: 30px;
  background: #fff8f1;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
#number-content h3 {
  color: #d63384;
  margin-bottom: 10px;
}
#number-content p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}


/* ===== Card Grid (Tools, Blogs, Testimonials, Horoscope) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}
.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.card h3 {
  color: #4b4b4b;
  margin-bottom: 10px;
}
.card p {
  color: #555;
}
.card:hover {
  transform: translateY(-5px);
}
.horoscope-tabs {
  text-align: center;
  margin: 20px 0;
}
.tab-btn {
  margin: 0 10px;
  padding: 10px 20px;
  background: #f8f4f0;
  color: #d63384;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.tab-btn:hover {
  background: #d63384;
  color: white;
}
.cta-block {
  margin: 40px 0;
  background: #fff0f5;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}
.cta-block .btn {
  background: #d63384;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  display: inline-block;
  border-radius: 6px;
  font-weight: bold;
}
.adsense-top, .adsense-bottom {
  margin: 30px 0;
  text-align: center;
  font-size: 14px;
  color: #999;
}
.personal-number-form {
  background: #fffdf9;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 30px;
  max-width: 700px;
  margin: auto;
}
.personal-number-form input {
  padding: 10px;
  margin: 8px;
  width: 200px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.personal-number-form button {
  padding: 10px 20px;
  background: #d63384;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
#personal-number-result {
  margin-top: 15px;
  font-weight: bold;
  color: #d63384;
  font-size: 18px;
}
.active-pill {
  background: #d63384 !important;
  color: white !important;
  border-color: #d63384 !important;
}


/* ===== Footer ===== */
footer {
  background: #fddfbe;
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
}
.footer-links a {
  color: #333;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}
footer p {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}
.testimonial-wrapper {
  position: relative;
  max-width: 960px;
  margin: auto;
}

.testimonial-pair {
  display: none;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.testimonial {
  flex: 1 1 45%;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 260px;
}

/* Only show first pair by default */
.testimonial-wrapper .testimonial-pair:first-child {
  display: flex;
}

/* ===== Tools & Calculators Page ===== */
.tools-page {
  padding: 60px 20px;
  background: #fff8f1;
  font-family: 'Segoe UI', sans-serif;
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}


.tools-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #222;
  font-weight: 800;
}

.tools-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.tool-category {
  margin-bottom: 50px;
}

.tool-category h2 {
  font-size: 1.6rem;
  color: #ff5722;
  margin-bottom: 20px;
  border-left: 6px solid #f90;
  padding-left: 12px;
  font-weight: 700;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.tool-box {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.tool-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #ffc107;
}

.tool-box h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
  font-weight: 600;
}

.tool-box p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
}

/* ===== Popup Form ===== */
#popupContainer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popupFormBox {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: popupFade 0.3s ease-in-out;
}

@keyframes popupFade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.popupFormBox h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #333;
}

.popupFormBox input,
.popupFormBox button {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.popupFormBox button {
  background: #f90;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease;
}

.popupFormBox button:hover {
  background: #ff5722;
}

#videoAdSection {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

#videoAdSection p {
  margin-top: 15px;
  font-size: 1rem;
  color: #444;
}
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
body {
  padding-top: 80px; /* To avoid navbar overlap */
}
.form-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.form-subtext {
  font-size: 1rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
footer {
  background-color: #f4f4f4;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #444;
  margin-top: 50px;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  margin: 0 10px;
}

.footer-links a:hover {
  text-decoration: underline;
}
.report-section {
  background: #fffefc;
  padding: 25px 30px;
  margin: 30px auto;
  max-width: 720px;
  border-left: 5px solid #d63384;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: left;
}

.report-section h4 {
  color: #d63384;
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
  text-align: left;
}

.report-section p,
.report-section li {
  font-size: 15.5px;
  color: #333;
  line-height: 1.6;
  text-align: left;
}

.report-section ul {
  padding-left: 20px;
  margin-top: 10px;
  text-align: left;
}

.report-section ul li {
  margin-bottom: 6px;
}

h3 {
  font-size: 22px;
  margin-bottom: 30px;
  color: #333;
  text-align: left;
}
.numerology-report-wrapper {
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}
#popupContainer {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}
.tool-result-container {
  max-width: 720px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  text-align: left;
  line-height: 1.6;
  color: #333;
}

.tool-result-container h2 {
  margin-bottom: 20px;
  font-weight: 600;
}
.report-box {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #e91e63; /* Pink accent bar on the left */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.report-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #e91e63; /* Pink heading */
  font-size: 18px;
  font-weight: bold;
}

.report-box p,
.report-box li {
  font-size: 15px;
  color: #333;
  margin: 6px 0;
}

.report-box ul {
  padding-left: 20px;
  margin: 0;
  list-style: disc;
}

.report-box strong {
  color: #000;
  font-weight: 600;
}
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto;
  max-width: 600px;
  position: relative;
}

.section-separator::before,
.section-separator::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #ccc;
}

.section-separator span {
  margin: 0 15px;
  font-size: 16px;
  font-weight: bold;
  color: #777;
}
/* ===== Vedic Numerology Result Page Styling ===== */

.report-container {
  max-width: 850px;
  margin: 40px auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.report-header h2 {
  font-size: 2rem;
  color: #b71c1c;
  margin-bottom: 10px;
}

.key-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.number-card {
  background: #ffe0e0;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  color: #b71c1c;
}

.ank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.ank-cell {
  background: #fff7e6;
  padding: 22px;
  border-radius: 8px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid #ffd6a0;
  transition: transform 0.2s ease;
}

.ank-cell:hover {
  transform: scale(1.04);
  background: #ffe8c8;
}

.timeline {
  margin: 25px 0;
  padding-left: 20px;
  border-left: 4px solid #b71c1c;
}

.timeline-item {
  margin-bottom: 10px;
  font-size: 16px;
}

.timeline-item span {
  font-weight: bold;
  color: #b71c1c;
}

.report-section {
  background: #fffdf7;
  padding: 20px;
  border-radius: 10px;
  margin: 25px 0;
  border-left: 5px solid #b71c1c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.report-section h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #6d1b1b;
}
/* --- Mahadasha Section Styling --- */
.mahadasha-section {
  margin: 25px auto;
  padding: 15px;
  background: #fff7f4;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  max-width: 650px;
}

/* --- Container --- */
.mahadasha-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* --- Base Card Style --- */
.dasha-card {
  display: flex;
  justify-content: space-between;
  align-items: center;   /* Proper vertical center */
  padding: 10px 15px;
  border-radius: 6px;
  background: #ffe9e4;
  border: 1px solid #f5c7ba;
  font-size: 0.95rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
  width: 100%;           /* Always full width of container */
  box-sizing: border-box;
}

.dasha-card:hover {
  transform: translateY(-2px);
  background: #ffd7ca;
}

.dasha-card.current {
  border: 2px solid #f04e30;
  background: #ffdcd2;
  font-weight: bold;
}

.dasha-left {
  font-weight: bold;
  color: #f04e30;
  flex: 1;
  text-align: left;
}

.dasha-right {
  color: #444;
  text-align: right;
  white-space: nowrap;  /* Date ek line me fix */
}

/* --- Antardasha --- */
.antardasha-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin: 3px 0;
  border-radius: 5px;
  background: #fff3f1;
  border: 1px solid #f1c3b9;
  font-size: 0.9rem;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.antardasha-left {
  font-weight: bold;
  flex: 1;
  text-align: left;
}

.antardasha-right {
  text-align: right;
  color: #333;
  white-space: nowrap;
}

/* --- Pratyantardasha --- */
.pratyantardasha-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  margin: 3px 0;
  border-radius: 4px;
  background: #fff9f8;
  border: 1px solid #eed7d2;
  font-size: 0.85rem;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.pratyantar-left {
  font-weight: 500;
  flex: 1;
  text-align: left;
}

.pratyantar-right {
  text-align: right;
  color: #333;
  white-space: nowrap;
}

/* --- Responsive Fix --- */
@media (max-width: 768px) {
  .dasha-card,
  .antardasha-card,
  .pratyantardasha-card {
    width: 100%;
  }
}
.current-ank-section {
  background: #fffefc;
  padding: 20px;
  margin: 25px 0;
  border-left: 5px solid #e91e63;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.current-ank-section h3 {
  color: #e91e63;
  margin-bottom: 15px;
}
.current-ank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.current-ank-grid .ank-cell {
  background: #fef6f9;
  border: 1px solid #f7c7d5;
  padding: 22px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.buy-btn {
  background: #e91e63;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
}
.buy-btn:hover {
  background: #c2185b;
}

/* Modern Input Styles */
.form-row input {
  width: 100%;
  max-width: 300px;
  padding: 12px 15px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.form-row input:focus {
  border-color: #d63384;
  box-shadow: 0 0 5px rgba(214,51,132,0.3);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* Button Modern Look */
form button {
  padding: 12px 20px;
  background: linear-gradient(90deg, #d63384, #5d4037);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

form button:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #c2185b, #4e342e);
}
/* ===== Modern Form Styles ===== */
.input-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.input-wrap label {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.input-wrap input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  background: #fff;
  transition: 0.3s ease;
}

.input-wrap input:focus {
  border-color: #d63384;
  box-shadow: 0 0 4px rgba(214, 51, 132, 0.3);
  outline: none;
}

/* ===== Modern Form Design ===== */
.form-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* Left align */
}

.form-row input {
  width: 280px;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-row input:focus {
  border-color: #d63384;
  box-shadow: 0 0 5px rgba(214, 51, 132, 0.2);
  outline: none;
}

form button {
  padding: 12px 20px;
  background: linear-gradient(90deg, #d63384, #5d4037);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

form button:hover {
  transform: translateY(-2px);
}
#blogFeed h4 {
  font-size: 18px;
  margin: 0;
}
#blogFeed p {
  font-size: 14px;
  color: #555;
}
