/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* BODY */
body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  width: 100%;
  overflow-x: hidden; /* ❌ horizontal scroll fix */
}

/* HEADER */
.main-header {
  background: #007bff;
  padding: 12px;
  text-align: center;
}

.header-link {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

/* HEADING */
.heading {
  background: #c30202;
  color: white;
  padding: 10px;
  font-size: 16px;
  text-align: center;
}

/* PARAGRAPH */
p {
  padding: 12px;
  font-size: 14px;
  line-height: 1.6;
}

/* BUTTON */
button {
  display: block;
  width: 90%; /* ✅ full width mobile */
  max-width: 300px;
  margin: 20px auto;
  padding: 12px;
  font-size: 15px;
  background: #02cd21;
  color: white;
  border: none;
  border-radius: 10px;
}

/* NEXT BUTTON */
#nextBtn {
  display: none;
  background: green;
}

/* TIMER ANIMATION */
@keyframes spin {
  from {transform: rotate(0deg);}
  to {transform: rotate(360deg);}
}

@keyframes spinReverse {
  from {transform: rotate(360deg);}
  to {transform: rotate(0deg);}
}

/* FOOTER */
.main-footer {
  background: #2f2f2f;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 13px;
}

/* CONTAINER (IMPORTANT FOR MOBILE FIT) */
.container {
  width: 100%;
  max-width: 100%;
  padding: 10px;
}

/* CARD GRID (if used in home) */
.grid {
  display: grid;
  grid-template-columns: 1fr; /* ✅ mobile single column */
  gap: 12px;
}

/* CARD */
.card {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  font-size: 14px;
}

/* AD BOX */
.ad-box {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

/* 🔥 TABLE RESPONSIVE (important for your loan tables) */
table {
  width: 100%;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

/* 🔥 MOBILE MEDIA QUERY */
@media (min-width: 768px) {

  .grid {
    grid-template-columns: repeat(2, 1fr); /* tablet */
  }

  .heading {
    font-size: 18px;
  }

  p {
    font-size: 15px;
  }

}

@media (min-width: 1024px) {

  .grid {
    grid-template-columns: repeat(3, 1fr); /* desktop */
  }

}