body {
  margin: 0;
  font-family: 'Noto Nastaliq Urdu', serif;
  direction: rtl;
  background-color: #000;
}

/* .navbar{
  background-color: white;
} */

/* HERO SECTION */
.hero {
  height: 100vh;
  background: url('./no-smoking-bg.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 90%;
  animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 25px;
}

.cta-btn {
  background-color: #ff4d4d;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
  margin-bottom: 15px;
}

.cta-btn:hover {
  background-color: #cc0000;
}

#quoteSlider {
  font-size: 1.1rem;
  font-style: italic;
  color: #eee;
  margin-top: 10px;
  transition: opacity 1s ease;
}

/* Fixed CTA Button */
.fixed-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  text-align: center;
  z-index: 1000;
}
.fixed-cta .cta-btn {
  font-size: 1.2rem;
}

/* MILESTONES */
.milestone-section {
  background-color: #f9f9f9;
  color: #222;
  padding: 40px 20px;
  text-align: center;
}

.milestone-section h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.milestone-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 250px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 1s forwards;
}

.card:nth-child(2) { animation-delay: 0.3s; }
.card:nth-child(3) { animation-delay: 0.6s; }

.card h3 {
  color: #e60000;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
}

/* STATS SECTION */
.stats-section {
  background: #fff;
  color: #000;
  text-align: center;
  padding: 40px 20px;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.stat {
  font-size: 1.5rem;
  font-weight: bold;
}

.stat-label {
  font-size: 1rem;
}

/* INFO SECTION */
.info-section {
  background: #111;
  color: #eee;
  padding: 40px 20px;
}

.info-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.info-points {
  max-width: 700px;
  margin: auto;
  font-size: 1rem;
  line-height: 1.8;
}

.info-points li {
  margin-bottom: 10px;
}

/* ABOUT SECTION */
.about-section {
  background: #f9f9f9;
  color: #222;
  padding: 40px 20px;
}
.about-section h2 {
  text-align: center;
  margin-bottom: 20px;
}
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.about-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 280px;
}
.how-to-list { margin: 0; padding-right: 18px; line-height: 1.9; }
.how-to-list li {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff4d4d;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex: 0 0 28px;
  box-shadow: 0 3px 8px rgba(255, 77, 77, 0.35);
}

/* FAQ Section */
.faq-section {
  background: #fff;
  padding: 40px 20px;
}
.faq-section h2 {
  text-align: center;
  margin-bottom: 20px;
}
.faq-section details {
  background: #f9f9f9;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}
.faq-section summary {
  font-weight: bold;
}

/* Scroll Animation Base */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .cta-btn { padding: 10px 20px; font-size: 0.9rem; }
  .card, .about-card { width: 90%; }
}

/* Language Toggle */
.lang-toggle {
  position: fixed;
  top: 16px;
  left: 16px; /* change to right:16px if you prefer */
  z-index: 1200;
  background: rgba(0,0,0,0.6);
  padding: 6px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn.active {
  background: #ff4d4d;
  color: #fff;
}
.lang-btn:not(.active):hover {
  background: rgba(255,255,255,0.15);
}

/* About button */
.about-btn {
  text-decoration: none;
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-size: 0.95rem;
  margin-left: auto; /* pushes it to far right */
  color: white;
  margin-left: 900px;
  /* padding-left: 920px; */
  float: right;
}

.about-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* Small Hero for App Page */
.small-hero { height: 40vh; }

/* App Sections */
.app-section {
  background: #f9f9f9;
  color: #222;
  padding: 30px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.app-section h2 { margin-bottom: 20px; }

/* Progress Bars */
.progress-item {
  max-width: 400px;
  margin: 10px auto;
  text-align: right;
}
.progress-bar {
  background: #ddd;
  height: 15px;
  border-radius: 10px;
  overflow: hidden;
}
.progress {
  height: 100%;
  background: #ff4d4d;
  width: 0;
  transition: width 1s ease;
}

/* Carousel */
.carousel {
  position: relative;
  max-width: 500px;
  margin: auto;
  overflow: hidden;
}
.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-item {
  min-width: 100%;
  background: white;
  padding: 20px;
  border-radius: 8px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ff4d4d;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}
#prevStory { left: 10px; }
#nextStory { right: 10px; }

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}
.tip-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Motivation Button */
.motivation-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #ff4d4d;
  color: #fff;
  padding: 10px 15px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =========================
   ADDITIONS / FIXES BELOW
   ========================= */

/* LTR overrides for English mode (so About + Info align left) */
.ltr-mode .about-section,
.ltr-mode .about-card,
.ltr-mode .about-card ul,
.ltr-mode .about-card p,
.ltr-mode .info-section,
.ltr-mode .info-points,
.ltr-mode .info-points li {
  direction: ltr;
  text-align: left;
}

/* How-to card layout fix (works in Urdu & English) */
.about-card .how-to-list {
  list-style: none;
  padding: 0 !important;   /* override earlier padding for consistent RTL/LTR */
  margin: 0;
}

.about-card .how-to-list li {
  display: grid;
  grid-template-columns: 28px 1fr; /* badge + text */
  column-gap: 10px;
  align-items: start;
  margin: 10px 0;
  line-height: 1.9;
  word-break: break-word;
}

.about-card .how-to-list li .step-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 28px;
}

.ltr-mode .about-card .how-to-list li {
  text-align: left;
}
