@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

html, body {
  overflow-x: clip !important;
}

body, button, input, select, textarea {
  font-family: 'Poppins', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Noto Sans Devanagari', 'Poppins', sans-serif !important;
  letter-spacing: -0.01em;
}

body {
  background: #ffffff !important;
  color: #1e293b;
  margin: 0;
  padding: 0;
}

/* -------------------------------------------------------------
   1. STICKY LIVE REAL-TIME SOCIAL PROOF TICKER
   ------------------------------------------------------------- */
.home-live-ticker-wrap {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100000 !important;
  background: #090d16;
  color: #ffffff;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.home-ticker-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-pulse-badge {
  background: #dc2626;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}

.ticker-dot-pulse {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: tickerPulse 1.2s infinite;
}

@keyframes tickerPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.ticker-marquee-scroll {
  white-space: nowrap;
  animation: tickerMarquee 30s linear infinite;
  color: #e2e8f0;
  font-weight: 600;
}

@keyframes tickerMarquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* -------------------------------------------------------------
   2. ANIMATED INDIAN TIRANGA WAVING HEADER
   ------------------------------------------------------------- */
.header-tiranga-animated {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 33px !important;
  z-index: 99999 !important;
  background: linear-gradient(
    120deg,
    #ff671f 0%,
    #ff9933 22%,
    #ffffff 42%,
    #e0f2fe 50%,
    #ffffff 58%,
    #138808 78%,
    #046a38 100%
  );
  background-size: 300% 300%;
  animation: tirangaWave 8s ease-in-out infinite alternate;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  border-bottom: 2px solid #ff671f;
}

@keyframes tirangaWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glass Pill for Logo on Tiranga */
.brand-logo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.brand-logo-pill:hover {
  transform: scale(1.02);
}

.brand-title-text {
  color: #0f172a;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.5px;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.brand-sub-text {
  color: #046a38;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Current Active Page Pill Badge in Header */
.header-current-page-badge {
  background: #0f172a;
  color: #fde047;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* Mobile Header Optimization */
@media (max-width: 640px) {
  .header-tiranga-animated .container {
    padding: 6px 8px !important;
    gap: 6px !important;
  }
  .brand-logo-pill {
    padding: 3px 8px !important;
    gap: 6px !important;
  }
  .brand-logo-pill img {
    height: 30px !important;
  }
  .brand-title-text {
    font-size: 0.92rem !important;
  }
  .brand-sub-text {
    display: none !important;
  }
  .header-current-page-badge {
    font-size: 0.68rem !important;
    padding: 2px 7px !important;
  }
  #header-pwa-install-btn {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
  }
  #header-pwa-install-btn span:last-child {
    display: none;
  }
  .user-notif-bell-btn,
  .header-actions a[href*="cart"] {
    width: 32px !important;
    height: 32px !important;
  }
  .menu-button {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.05rem !important;
  }
}

@media (max-width: 380px) {
  .header-current-page-badge {
    display: none;
  }
}

/* -------------------------------------------------------------
   3. HERO BANNER SLIDER
   ------------------------------------------------------------- */
.home-hero-section {
  padding: 24px 0 10px 0;
  background: #ffffff;
}

.home-hero-slide-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e3a8a 100%);
  border: 1.5px solid #3b82f6;
  border-radius: 24px;
  padding: 36px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 14px 40px rgba(30, 58, 138, 0.25);
  position: relative;
  overflow: hidden;
}

.home-hero-slide-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.home-hero-tag {
  background: #facc15;
  color: #000000;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(250, 204, 21, 0.3);
}

.home-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 14px 0 10px 0;
  color: #ffffff;
  line-height: 1.25;
}

.home-hero-desc {
  font-size: 0.96rem;
  color: #93c5fd;
  margin-bottom: 22px;
  line-height: 1.55;
  max-width: 580px;
}

.home-hero-3d-book {
  width: 170px;
  height: 230px;
  perspective: 1000px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.home-hero-3d-book:hover {
  transform: scale(1.05) rotateY(-5deg);
}

.home-hero-3d-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 14px 14px 8px;
  box-shadow: -8px 14px 30px rgba(0, 0, 0, 0.6);
  transform: rotateY(-12deg);
}

@media (max-width: 768px) {
  .home-hero-slide-card {
    flex-direction: column-reverse;
    text-align: center;
    padding: 26px 18px;
  }
  .home-hero-title {
    font-size: 1.5rem;
  }
  .home-hero-3d-book {
    width: 140px;
    height: 190px;
  }
}

/* -------------------------------------------------------------
   4. 10-IN-1 QUICK ACTION SUPER HUB (PROMINENT BLUE-NAVY BOXES)
   ------------------------------------------------------------- */
.quick-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.quick-hub-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid #334155;
  border-radius: 18px;
  padding: 18px 10px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.quick-hub-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

.quick-hub-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform 0.3s;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.quick-hub-card:hover .quick-hub-icon-circle {
  transform: scale(1.15) rotate(6deg);
  background: rgba(59, 130, 246, 0.3);
}

.quick-hub-title {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

/* -------------------------------------------------------------
   5. HEALTH CONSULTATION CARDS (10 GLOWING BLUE CARDS)
   ------------------------------------------------------------- */
.health-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.health-disease-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 20px;
  border: 1.5px solid #334155;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  color: #ffffff;
}

.health-disease-card:hover {
  transform: translateY(-6px);
  border-color: #3b82f6;
  box-shadow: 0 16px 36px rgba(59, 130, 246, 0.25);
}

.health-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.health-card-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.health-symptom-tag {
  background: #1e1b4b;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin: 2px 4px 2px 0;
  border: 1px solid #312e81;
}

/* Bold Red AI Expert Button */
.ai-expert-red-btn {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.88rem;
  padding: 11px 16px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.ai-expert-red-btn:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.6);
}

/* -------------------------------------------------------------
   6. CROP CARE & PASHU PALAN CARDS
   ------------------------------------------------------------- */
.crop-cards-grid, .pashu-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.agri-item-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 20px;
  border: 1.5px solid #334155;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.agri-item-card:hover {
  transform: translateY(-6px);
  border-color: #3b82f6;
  box-shadow: 0 16px 36px rgba(59, 130, 246, 0.25);
}

.agri-card-img-wrap {
  width: 100%;
  height: 145px;
  position: relative;
  overflow: hidden;
}

.agri-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.agri-item-card:hover .agri-card-img-wrap img {
  transform: scale(1.08);
}

.agri-card-content {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* -------------------------------------------------------------
   7. ACHIEVERS & LEADERS SHOWCASE (GRAND REDESIGN)
   ------------------------------------------------------------- */
.achievers-marquee-wrap {
  overflow: hidden;
  position: relative;
  padding: 16px 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.achievers-track {
  display: flex;
  gap: 24px;
  animation: achieversScroll 45s linear infinite;
  width: max-content;
  padding: 10px 0;
}

.achievers-track:hover {
  animation-play-state: paused;
}

@keyframes achieversScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.achiever-badge-card {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  color: #ffffff;
}

.achiever-badge-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.35);
}

.achiever-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.achiever-badge-card:hover .achiever-avatar-circle {
  transform: scale(1.1) rotate(5deg);
}

.achiever-name-en {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.achiever-name-hi {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
  display: inline-block;
  margin-top: 2px;
}

.achiever-rank-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.achiever-achievement-box {
  background: rgba(15, 23, 42, 0.7);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.45;
  margin: 12px 0 10px 0;
}

.achiever-quote-box {
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.42;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

/* -------------------------------------------------------------
   8. SECTION HEADERS & GENERAL HELPERS
   ------------------------------------------------------------- */
.home-section-header {
  text-align: center;
  margin-bottom: 26px;
}

.home-section-tag {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-weight: 900;
  font-size: 0.78rem;
  padding: 5px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.home-section-title {
  font-size: 1.95rem;
  font-weight: 900;
  color: #0f172a;
  margin: 10px 0 6px 0;
  line-height: 1.3;
}

.home-section-subtitle {
  color: #64748b;
  font-size: 0.94rem;
  max-width: 700px;
  margin: 0 auto;
}
