/* ============================================
   MAHTO.IN — Custom Styles
   Kisan aur Gaon ka Knowledge Portal
   ============================================ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base body styling */
body {
  font-family: 'Segoe UI', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}

/* Hindi text optimization */
.hindi-text {
  line-height: 1.9;
  word-spacing: 0.05em;
}

/* Hero gradient overlay */
.hero-gradient {
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.92) 0%, rgba(21, 128, 61, 0.88) 40%, rgba(5, 150, 105, 0.85) 100%);
}

/* Card hover effects */
.category-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Section divider with leaf motif */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, #166534 0%, #22c55e 50%, #166534 100%);
  border-radius: 2px;
}

/* CTA button pulse animation */
.cta-pulse {
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Print-friendly styles */
@media print {
  header, footer, .no-print, .cta-section {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* Back to top button */
#back-to-top {
  opacity: 0;
  transition: opacity 0.3s ease;
}
#back-to-top.visible {
  opacity: 1;
}

/* Breadcrumb styling */
.breadcrumb a {
  transition: color 0.15s ease;
}
.breadcrumb a:hover {
  color: #166534;
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer.open {
  max-height: 500px;
}

/* Quick summary box */
.summary-box {
  border-left: 4px solid #16a34a;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Disclaimer box */
.disclaimer-box {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

/* Warning box */
.warning-box {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

/* Tip box */
.tip-box {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Check list styling */
.checklist li::before {
  content: "✓ ";
  color: #16a34a;
  font-weight: bold;
}

/* Step number styling */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #16a34a;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Resource card official link indicator */
.official-badge {
  display: inline-block;
  background: #166534;
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

/* Improve tap targets on mobile */
@media (max-width: 768px) {
  .nav-link, .cta-btn, .card-link {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Seasonal icon colors */
.icon-green { color: #16a34a; }
.icon-amber { color: #d97706; }
.icon-blue { color: #2563eb; }
.icon-red { color: #dc2626; }

/* Guide content reading width for comfort */
.guide-content {
  max-width: 72ch;
}

/* Table wrapper for mobile scroll */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
