/* CSS Variables */
:root {
  --primary-color: #8A000B; /* Your brand orange */
  --primary-romi: #8A000B; /* ff4555its romi css code don't edit */
  --primary-light: rgba(255, 69, 0, 0.12);
  --primary-border: rgba(255, 69, 0, 0.3);
  --background: #ffffff;
  --surface: #f8f9fa;
  --text-primary: #1d1d1f;
  --text-secondary: #5d5d5d;
  --romi-bhai-css: #FFFFFF;
  --border-color: #d2d2d7;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
  --blur-bg: rgba(255, 255, 255, 0.8);
  --max-width: 1200px;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --tableShadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

[data-theme="dark"] {
  --background: #0f1218;
  --surface: #1a1f28;
  --text-primary: #f0f4ff;
  --text-secondary: #a7b2c9;
  --border-color: #2d3447;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.2);
  --blur-bg: rgba(15, 18, 24, 0.9);
  --tableShadow: rgba(255, 255, 255, 0.16) 0px 1px 4px;
}

.svgLogo {
  fill: var(--primary-color);
  color: var(--romi-bhai-css);
}
a {
  text-decoration: none;
}

.months {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-block: 1em;
}

.months div {
  flex: 1 1 auto;
  white-space: nowrap;
}

.months a {
  display: inline-block;
  padding: 6px 10px;
  background-color: var(--surface);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.months a:hover {
  background-color: var(--primary-romi);
  color: #fff;
}

.progressResult {
  max-width: 200px;
  margin: 1em auto;
}

.progressResult img {
  width: 100%;
  animation: pulse 2s infinite alternate; /* 4 seconds duration, infinite loop, alternates direction */
}

@keyframes pulse {
  0% {
    transform: scale(1); /* Original size */
  }
  100% {
    transform: scale(1.05); /* Slightly larger */
  }
}

.showResult {
  max-width: 500px;
  margin: 1em auto 3em auto;
}

.showResult img {
  width: 100%;
}

.showResultButtons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.showResult a {
  max-width: 200px;
  text-decoration: none;
  background-color: var(--primary-color);
  border: 2px solid var(--primary-border);
  border-radius: 5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  padding: 10px 1em;
  font-weight: 600;
}

.showResult a:hover {
  background-color: var(--surface);
  border: 2px solid var(--primary-border);
  color: var(--text-primary);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  transition: var(--transition);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--blur-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 9000;
  transition: var(--transition);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-primary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--surface);
}

.moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  transform-origin: center;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
  padding: 50px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.ajaxResult {
  text-align: center;
  margin: 1px auto 1em auto;
}

.ajaxResult a {
  padding: 12px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 2px solid transparent;
  background: var(--primary-color);
  color: white;
  max-width: 250px;
  margin: auto;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-romi);
  color: white;
}

.btn-primary:hover {
  background: #4219b8;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.tableSection {
  padding: 80px 0;
  background: var(--primary-light);
}

.tableSection h2 {
  text-align: center;
  font-size: 1.8em;
}
.tableSection p {
  text-align: center;
  margin: 1em auto;
  max-width: 800px;
}
/* Cards Section */
.cards-section {
  padding: 80px 0;
  background: var(--surface);
}

.cards-section h2 {
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: var(--background);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-btn {
  margin-top: 1em;
}

.card-btn .btn {
  font-size: 14px;
  padding: 8px 16px;
}

/* Content Section */
.content-section {
  padding: 80px 0;
}

.grid_box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.grid_box div {
  text-align: center;
}

.grid_box h3 {
  color: var(--primary-color);
  margin-bottom: 16px;
}

.content-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
  text-align: center;
}

.content-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--surface);
}

.faq-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--text-primary);
  text-align: center;
}

.faq-item {
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-question {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.6;
  transition: var(--transition);
}

/* Disclaimer Section */
.disclaimer-section {
  padding: 60px 0;
}

.disclaimer-box {
  background: var(--primary-light);
  border: 1px dashed var(--primary-border);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-weight: bold;
}

.disclaimer-box p {
  color: var(--text-secondary);
  margin: 0;
}

/* Footer */
.footer {
  background: var(--surface);
  padding: 60px 0 32px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-left p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-links {
  text-align: right;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-divider {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 32px 0 24px;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 14px;
}

.draw-box {
  margin-block: 2em;
}

.draw-box h2 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.table-responsive {
  overflow-x: auto;
}

.draw-schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.draw-schedule-table th,
.draw-schedule-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
  transition: var(--transition);
}

.draw-schedule-table th {
  background-color: transparent;
}

.draw-schedule-table .highlight {
  background-color: var(--primary-light);
  font-weight: bold;
  color: var(--primary-color);
}

.lottery-section {
  margin-bottom: 20px;
}

.lottery-section ul,
.lottery-section ol {
  list-style-type: disc; /* Use disc for unordered lists, decimal for ordered lists */
  margin: 15px 0; /* Vertical spacing */
  padding-left: 30px; /* Indentation for list items */
  font-size: 16px; /* Readable font size */
  color: var(--text-primary); /* Text color */
  line-height: 1.8; /* Increased line height for readability */
}

.lottery-section ul li,
.lottery-section ol li {
  margin-bottom: 10px; /* Spacing between list items */
}
.lottery-section table {
  width: 100%; /* Full width for responsiveness */
  border-collapse: collapse; /* Remove gaps between cells */
  margin: 15px 0; /* Vertical spacing */
  font-size: 16px; /* Readable font size */
  line-height: 1.6; /* Increased line height for readability */
}

.lottery-section table th,
.lottery-section table td {
  padding: 10px; /* Padding for cell content */
  border: 1px solid var(--border-color); /* Light border for clarity */
  text-align: left; /* Align text to the left */
}

.lottery-section table th {
  font-weight: bold; /* Bold headers for emphasis */
}

.lottery-section table tr {
  vertical-align: top; /* Align content to the top of cells */
}

.main_content {
  margin-block: 2em;
}

#fileData {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--tableShadow);
}

#fileData td,
#fileData th {
  border: 1px solid var(--border-color);
  padding: 8px;
}

#fileData tr {
  background-color: var(--background);
}

#fileData tr:nth-child(even) {
  background-color: var(--surface);
}

#fileData th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  background-color: var(--primary-color);
  color: white;
}

#fileData a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  color: var(--text-primary);
}

.h3Heading {
  margin-top: 2em;
}

#searchOld {
  max-width: 600px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--surface);
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
#searchOld label {
  display: block;

  font-weight: bold;
}
#searchOld input[type="date"],
#searchOld select {
  width: 100%;
  padding: 8px;
  max-width: 150px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
}
#searchOld button {
  padding: 10px 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  min-width: 120px;
}
#searchOld button:disabled {
  background: #999;
  cursor: not-allowed;
}
#SearchResult {
  margin-top: 20px;
}

.main_content h1,
.main_content h2 {
  color: var(--text-primary);
  margin-top: 25px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.main_content h2 {
  font-size: 22px;
  border-left: 4px solid var(--primary-color);
  padding-left: 10px;
}

.main_content .h2 {
  font-size: 28px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  border-left: none;
}

.main_content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.main_content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.main_content ul li {
  font-size: 16px;
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.main_content ul li::before {
  content: "✔";
  color: #4caf50;
  position: absolute;
  left: 0;
  top: 0;
}

.page {
  padding-top: 1px;
}

.social-share {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 5px;
  max-width: 800px;
  margin: auto;
  padding-top: 5em;
}

.shareCounter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  line-height: 18px;
  opacity: 0.8;
  margin-top: 5px;
  font-size: 12px;
}
.shareCounter span {
  font-size: 2.2em;
}

.share-btn {
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s ease;
  min-width: 130px;
  text-align: center;
  cursor: pointer;
}

.share-btn svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.share-btn span {
  display: inline-block;
  font-weight: 500;
}

/* Brand Colors */
.facebook {
  background-color: #3b5998;
}
.twitter {
  background-color: #1da1f2;
}
.whatsapp {
  background-color: #25d366;
}
.telegram {
  background-color: #0088cc;
}

.native {
  background-color: #65035a;
}

.share-btn:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .social-share {
    margin: 0px 5px;
    justify-content: space-around;
  }
  .share-btn {
    min-width: auto;
    padding: 5px;
  }
  .share-btn span {
    display: none;
  }
  .main_content h2 {
    font-size: 18px;
  }

  .main_content p,
  .main_content ul li {
    font-size: 15px;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .tableSection {
    padding: 30px 0;
  }

  .tableSection h2 {
    font-size: 1.3em;
  }

  .showResult a span,
  #fileData a span {
    display: none;
  }
  .showResult a {
    width: 46%;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blur-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);

    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 500;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    background: var(--background);
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

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

  .faq-question {
    position: relative;
    padding-right: 24px;
  }

  .faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    transition: var(--transition);
  }

  .faq-item.active .faq-question::after {
    transform: rotate(45deg);
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 12px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-links {
    text-align: center;
  }

  .faq-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .hero {
    padding: 50px 0 60px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .cards-section,
  .content-section,
  .faq-section {
    padding: 60px 0;
  }

  .card {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .draw-box h2 {
    font-size: 1.1rem;
  }

  .draw-schedule-table th,
  .draw-schedule-table td {
    padding: 8px;
    font-size: 0.9rem;
  }
}

.not_404_wrapper {
  padding: 30px 20px;
  text-align: center;
}

.not_404_container {
  max-width: 700px;
  margin: 0 auto;
}

.not_404_title {
  font-size: 3rem;

  margin-bottom: 20px;
  font-weight: bold;
}

.not_404_message {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.not_404_links {
  font-size: 1rem;
  margin-bottom: 20px;
}

.not_404_note {
  font-size: 0.95rem;

  line-height: 1.6;
}

.not_link {
  color: #007bff;
  text-decoration: underline;
}

.not_link:hover {
  color: #0056b3;
  text-decoration: none;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.content main {
  flex: 1;
}

.content aside {
  position: sticky;
  padding: 10px;
  top: 60px;
}
@media (min-width: 768px) {
  .content {
    flex-direction: row;
    align-items: flex-start;
  }

  .content main {
    flex: 3;
  }

  .content aside {
    flex: 1;
  }
}

.archive-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 2em;
}

.archive-links a {
  display: block;
  padding: 10px 5px;
  background-color: var(--surface);
  color: var(--text-primary);
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-size: 15px;
  border: 1px solid var(--border-color);
}

.archive-links a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.sidebar_heading {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-primary);
  text-align: center;
  border-bottom: 2px dashed var(--border-color);
}

.m_headeing {
  font-size: 18px;
  font-weight: bold;
  margin-top: 2em;
  margin-bottom: 10px;
  color: var(--text-primary);
  text-align: center;
  border-bottom: 2px dashed var(--border-color);
}

#chDateSearchForm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#chDateSearchForm label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

#chDateInput {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

#chDateInput:focus {
  border-color: var(--primary-color);
}

#chSearchBtn {
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#chSearchBtn:hover:not(:disabled) {
  filter: brightness(0.9);
}

#chSearchBtn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

#chSearchOutput {
  margin: 20px auto;
  max-width: 400px;
  padding: 10px;
  min-height: 50px;
}
