body {
  background-color: #ffffff; /* white */
  color: #000000; /* optional: change text to black */
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

h2, h3 {
  color: #FFD700;
}
/* ===========================================================
   🌟 INDEX PAGE STYLES - 20 DAYS RESULT TABLE
   File: index.php (includes last20days.php)
   =========================================================== */

.index-container {
  border: 1px solid #333;
  background-color: white;
  border-radius: 8px;
  overflow-x: auto;
  padding: 10px;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
  margin: 10px auto;
  max-width: 768px;
  text-align: center;
}

.index-table {
  width: 100%;
  border-collapse: collapse;
  margin: auto;
  color: #fff;
  font-family: Arial, sans-serif;
}

.index-table th,
.index-table td {
  border: 1px solid #444;
  padding: 10px;
  text-align: center;
  font-size: 16px;
}

.index-table thead th {
  background-color: #1b2a38;
  color: #FFD700;
}

.index-slot {
  background-color: #283747;
  color: #FAD02C;
  font-weight: bold;
  font-size: 16px;
}

.index-value span {
  color: red;
  font-weight: bold;
  font-size: 16px;
}

.index-digit {
  background-color: white;
  font-weight: bold;
  font-size: 16px;
  color: #1b2a38;
}

.index-holiday {
  background-color: #3a3a3a;
}

/* 🔔 Scrolling Marquee */
.scrolling-marquee {
  background-color: #212f3c;
  padding: 10px 0;
  border-top: 5px solid #FFD700;
  border-bottom: 5px solid #FFD700;
}

.scrolling-marquee-text {
  color: #FFD700;
  font-size: 20px;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  margin: 0;
  white-space: nowrap;
}


/* 🔰 Title Block */
.index-heading-wrapper {
  background: #1b2a38;
  text-align: center;
  padding: 10px;
  max-width: 768px;
  margin: 20px auto;
  border-radius: 6px;
}

.index-heading-wrapper h3 {
  color: #FFD700;
  font-size: 16px;
  margin: 0;
}

/* 📱 Responsive Mobile View */
@media (max-width: 768px) {
  .index-table,
  .index-table thead,
  .index-table tbody,
  .index-table th,
  .index-table td,
  .index-table tr {
    display: block;
  }

  .index-table thead tr {
    display: none;
  }

  .index-table td {
    padding: 8px;
    text-align: left;
    border: none;
    position: relative;
    font-size: 16px;
  }

  .index-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #FFD700;
    width: 120px;
    padding-left: 10px;
  }

  .index-table td span {
    display: inline-block;
    padding-left: 130px;
  }
}


/* 🔷 Table Date Row (e.g. 10 Jul 2025) */
.table-date {
  background-color: #1b2a38;
  color: #FFD700;
  font-size: 20px;
  padding: 8px;
  padding-bottom: 15px;      /* ✅ Adds vertical space inside */
  border-bottom: 5px solid #fff; /* ✅ Optional: white gap border below */
}
.blog-box {
  padding: 20px;
  background-color: #f9f9f9;
  color: #000;
  font-size: 16px;
  line-height: 1.6;
  border: 1px solid #ccc;
  margin: 20px auto;
  max-width: 768px;
}
.blog-box h2 {
  color: #d4af37;
  text-align: center;
}
.blog-box ul {
  padding-left: 20px;
}

/* Navigation Buttons Container */
.navigation-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

/* Button Wrapper Link */
.nav-btn-link {
  text-decoration: none;
}

/* Navigation Button Styling */
.nav-btn {
  min-width: 100px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  background-color: #212f3c;
  color: #FFD700;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 5px #000;
  transition: all 0.3s ease-in-out;
}
	
/* ===============================
   🎯 PATTI LIST PAGE STYLES
   =============================== */

.patti-title {
  text-align: center;
  background-color: #1b2a38;
  color: #FFD700;
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: 768px;

}

.table-wrapper {
  display: flex;
  max-width: 768px;
  margin: 20px auto;
  overflow-x: auto;
}

.patti-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.patti-table th {
  background-color: #1b2a38;
  color: #FFD700;
  padding: 12px;
  font-size: 16px;
}

.patti-table td {
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #1b2a38;
}

.footer {
  background-color: #1b2a38;
  color: #FFD700;
  text-align: center;
  padding: 5px 10px;
  font-size: 14px;
  width: 100% auto;
}

/* ----------------------------------------
   📌 TIPS PAGE STYLING — RAJDHANI GOLD
---------------------------------------- */
.tips-wrapper {
  background: #fff;
  padding: 30px 15px;
  text-align: center;
}

.gold-header {
  background-color: #1b2a38;
  color: #FFD700;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 0;
  text-transform: uppercase;
  margin: 10px auto;
  width: 100%;
  max-width: 768px;
  border-radius: 10px;
}

.tips-table {
  width: 100%;
  max-width: 768px;
  margin: 0 auto 40px;
  border-collapse: collapse;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.tips-table th {
  background-color: #1b2a38;
  color: #FFD700;
  font-size: 16px;
  padding: 12px;
}

.tips-table td {
  font-size: 16px;
  padding: 12px;
  border: 1px solid #ccc;
}

@media (max-width: 768px) {
  .gold-header {
    font-size: 16px;
    width: 95%;
  }
  .tips-table th, .tips-table td {
    font-size: 16px;
    padding: 8px;
  }
}
/* ------------------------------
   🎯 FAQ PAGE STYLES (faq.php)
------------------------------ */
.faq {
  max-width: 768px;
  margin: auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.faq-title {
  text-align: center;
  background-color: #1b2a38;
  color: #FFD700;
  font-size: 16px;
  font-weight: bold;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.faq-card {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-card input[type="checkbox"] {
  display: none;
}

.faq-card label {
  text-align: center;
  display: block;
  background-color: #212f3c;
  color: #FFD700;
  padding: 15px;
  cursor: pointer;
  font-size: 16px;
}

.faq-card .card-body {
  text-align: center;
  display: none;
  background-color: #f7f7f7;
  padding: 15px;
  color: #212f3c;
  font-size: 16px;
}

.faq-card input[type="checkbox"]:checked ~ .card-body {
  display: block;
}
/* 🎯 20 Days Result Panel Styles */

.days20-container {
  border: none;
  background-color: white;
  border-radius: 8px;
  overflow-x: auto;
  padding: 5px;
  box-shadow: none;
  margin: 10px auto;
  max-width: 768px;
  text-align: center;
}

.days20-container table {
  width: 100%;
  border-collapse: collapse;
  margin: auto;
  color: #fff;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.days20-container th,
.days20-container td {
  border: 1px solid grey;
  padding: 5px;
  text-align: center;
  font-size: 16px;
}

.days20-container thead th {
  background-color: #1b2a38;
  color: #FFD700;
  font-size: 16px;
}

.days20-slot {
  background-color: #283747;
  color: #FAD02C;
  font-weight: bold;
  font-size: 16px;

}

.days20-value span {
  color: red;
  font-weight: bold;
  font-size: 16px;

}

.days20-digit {
  background-color: white;
  font-weight: bold;
  font-size: 16px;
  color: #1b2a38;
}
/* 📘 OLD RESULT PAGE STYLES – by .old-* prefix */

/* 🗓️ Year Buttons */
.old-year-button {
  display: inline-block;
  margin: 8px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  min-width: 100px;
  color: #FFD700;
  background-color: #212f3c;
  border: 2px solid #FFD700;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.old-year-button:hover {
  background-color: #FFD700;
  color: #212f3c;
}

/* 🟩 Month Title */
.old-month-header {
  max-width: 768px;
  background-color: #1b2a38;
  color: #FFD700;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  margin: 10px 0 10px 0;
}
.month-table-wrapper {
  max-width: 768px;
  margin: 0 auto;
  padding: 10px;
}


/* 📊 Result Table */
.old-result-table {
  width: 100%;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
  border-collapse: collapse;
  background-color: white;
  margin-bottom: 20px;
  color: #000;
  font-family: Arial, sans-serif;
}

.old-result-table th,
.old-result-table td {
  border: 1px solid #2c3e50;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
  padding: 5px;
  text-align: center;
  font-weight: bold;  
  font-size: 16px;
  color: #000; /* text black */
  background-color: white; /* ensure all cells are white too */
}


.old-result-table th {
  background-color: #212f3c;
  color: #FFD700;
  font-weight: bold;
}

.old-result-table td .val3 {
  font-size: 16px;
  font-weight: bold;
  color: red;
}

.old-result-table td .val1 {
  font-size: 16px;
  color: #1b2a38;
  margin-top: 4px;
}
/* 🎯 LIVE RESULT PANEL STYLES */

.live-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.live-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.panel {
  flex: 1;
  min-width: 200px;
  padding: 5px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  background-color: #2c3e50; /* Default fallback */
}

.game-title {
  color: #FFD700;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}

.value-block {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  margin-top: 10px;
}

.value-block span {
  color: #FFD700;
}

.time-slot {
  color: #FFD700;
  font-size: 16px;
  margin-top: 10px;
}

.live-dot {
  color: red;
  font-weight: bold;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
  100% { opacity: 1; }
}

/* 📊 LIVE TABLE */

.live-wrapper {
  margin: 20px auto;
  max-width: 768px;
  display: flex;
  justify-content: center;
}

.live-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid grey;
  background-color: white;
  text-align: center;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.live-title {
  font-size: 16px;
  background-color: #1b2a38;
  color: #FFD700;
  padding: 5px;
  border: 1px solid grey;
}

.live-date {
  font-size: 16px;
  background-color: #1b2a38;
  color: #FFD700;
  padding: 5px;
  border: 1px solid grey;
}

.live-th {
  font-size: 16px;
  background-color: #1b2a38;
  color: #FFD700;
  padding: 5px;
  border: 1px solid grey;
}

.live-td {
  font-size: 16px;
  font-weight: bold;
  border: 1px solid grey;
  padding: 5px;
  background-color: white;
}

.value-td {
  color: red;
}

.digit-td {
  color: #000;
}

.spinner-only .spinner-frame {
  animation: blink 1s linear infinite;
}

/* ✅ Ensure grid-style live table is scrollable on mobile */
@media (max-width: 768px) {
  .live-wrapper {
    padding: 10px;
    overflow-x: hidden;
  }

  .live-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* ✅ Allow table to auto fit columns */
  }

  .live-table th,
  .live-table td {
    font-size: 13px;
    padding: 5px;
    white-space: normal; /* ✅ Allow wrapping if needed */
    word-break: break-word;
    text-align: center;
  }

  .live-title,
  .live-date {
    font-size: 14px;
    padding: 6px;
    text-align: center;
  }
}

/* ✅ Ensure Old Result Table doesn't break layout on mobile */
@media (max-width: 768px) {
  .month-table-wrapper {
    overflow-x: auto;
  }

  .old-result-table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .old-result-table thead,
  .old-result-table tbody,
  .old-result-table tr,
  .old-result-table th,
  .old-result-table td {
    white-space: nowrap;
  }

  .old-result-table th,
  .old-result-table td {
    font-size: 14px;
    padding: 6px;
  }
}

/* ✅ Navigation buttons tighter on mobile */
@media (max-width: 768px) {
  .navigation-buttons {
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 10px;
  }

  .nav-btn {
    font-size: 14px;
    padding: 10px 15px;
    min-width: 90px;
  }
}

/* ✅ Telegram/WhatsApp icons fix for small devices */
@media (max-width: 480px) {
  a img[alt="Telegram"],
  a img[alt="WhatsApp"] {
    width: 40px !important;
    height: 40px !important;
  }
}
@media (max-width: 768px) {
  .tips-table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  .tips-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .tips-table th,
  .tips-table td {
    font-size: 16px;
    padding: 10px;
    text-align: center;
  }

  .gold-header {
    font-size: 16px;
    padding: 10px;
  }
  .tips-wrapper {
  padding: 20px 10px;
  max-width: 768px;
  margin: 0 auto;
 }
}
@media (max-width: 768px) {
  .days20-container {
    padding: 5px;
    overflow-x: hidden;
  }

  .days20-container table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
  }

  .days20-container th,
  .days20-container td {
    font-size: 13px;
    padding: 5px;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    min-width: unset;
  }

  .days20-date {
    font-size: 14px !important;
    padding: 8px;
    text-align: center;
  }

  .days20-slot {
    font-size: 13px;
  }

  .days20-value span {
    font-size: 13px;
  }

  .days20-digit {
    font-size: 13px;
  }
}
