/* THE PANCHAYATS PAGE - SCOPED CSS | RURAL GREEN THEME | NO COPYRIGHT */
.panchayats-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.panchayats-page {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  background: linear-gradient(180deg, #E8F5E9 0%, #ffffff 100%);
  color: #333;
  line-height: 1.7;
}

/* HERO SECTION - UNIQUE RURAL DESIGN */
.panchayats-page .part-hero {
  position: relative;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 25%, #388E3C 50%, #43A047 75%, #4CAF50 100%);
  padding: 120px 20px 100px;
  text-align: center;
  overflow: hidden;
  border-bottom: 8px solid #1B5E20;
  box-shadow: 0 10px 40px rgba(27,94,32,0.25);
}

.panchayats-page .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Village pattern */
.panchayats-page .hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 70px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 70px);
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 70px 70px, -70px 70px; }
}

/* Floating icons */
.panchayats-page .hero-overlay::after {
  content: '🏡 🌾 🌳';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  opacity: 0.08;
  letter-spacing: 80px;
  animation: floatIcons 15s ease-in-out infinite;
}

@keyframes floatIcons {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-25px); }
}

.panchayats-page .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInScale 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* भाग 9 - TOP */
.panchayats-page .part-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #FFFFFF 0%, #E8F5E9 50%, #FFFFFF 100%);
  color: #1B5E20;
  padding: 16px 50px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 2.2rem;
  margin-bottom: 40px;
  box-shadow: 0 15px 40px rgba(27,94,32,0.5), 
              inset 0 -5px 0 rgba(27,94,32,0.25),
              inset 0 3px 0 rgba(255,255,255,1);
  border: 5px solid #2E7D32;
  letter-spacing: 4px;
  text-transform: uppercase;
  position: relative;
  transform: perspective(800px) rotateX(0deg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.panchayats-page .part-badge::before {
  content: '📜';
  font-size: 2.8rem;
  animation: scrollRotate 3s ease-in-out infinite;
}

@keyframes scrollRotate {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.panchayats-page .part-badge:hover {
  transform: perspective(800px) rotateX(-12deg) translateY(-10px) scale(1.08);
  box-shadow: 0 25px 60px rgba(27,94,32,0.6);
}

/* पंचायत - MIDDLE */
.panchayats-page .hero-title {
  font-size: 5rem;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 5px 20px rgba(27,94,32,0.8),
               0 3px 6px rgba(0,0,0,0.5),
               0 0 50px rgba(255,255,255,0.4);
  margin: 0 0 25px 0;
  letter-spacing: -2.5px;
  line-height: 1.1;
  position: relative;
  display: inline-block;
  padding: 0 30px;
}

.panchayats-page .hero-title::before,
.panchayats-page .hero-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  height: 8px;
  background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(255,255,255,0.9);
}

.panchayats-page .hero-title::before {
  left: 0;
  right: 55%;
}

.panchayats-page .hero-title::after {
  left: 55%;
  right: 0;
}

/* The Panchayats - BELOW */
.panchayats-page .hero-subtitle {
  font-size: 2.1rem;
  color: #FFFFFF;
  font-weight: 800;
  margin: 0 0 22px 0;
  text-shadow: 0 3px 12px rgba(27,94,32,0.8);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Articles - BOTTOM */
.panchayats-page .hero-desc {
  font-size: 1.7rem;
  color: #1B5E20;
  font-weight: 800;
  text-shadow: 0 3px 10px rgba(255,255,255,1);
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(232,245,233,0.98) 100%);
  display: inline-block;
  padding: 18px 45px;
  border-radius: 50px;
  backdrop-filter: blur(20px);
  border: 4px solid #2E7D32;
  box-shadow: 0 12px 40px rgba(27,94,32,0.4),
              inset 0 2px 0 rgba(255,255,255,1);
  letter-spacing: 1.5px;
}

/* SECTION CONTAINER */
.panchayats-page .section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.panchayats-page .section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(46,125,50,0.4);
}

.panchayats-page .section-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1B5E20;
  margin: 0 0 50px 0;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(46,125,50,0.15);
}

/* INTRO SECTION */
.panchayats-page .intro-section {
  padding: 80px 20px;
}

.panchayats-page .intro-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #E8F5E9 100%);
  padding: 60px 50px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(46,125,50,0.15);
  text-align: center;
  border: 5px solid #A5D6A7;
  position: relative;
}

.panchayats-page .intro-box::before {
  content: '🌿';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3.5rem;
  background: white;
  padding: 12px 25px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(46,125,50,0.25);
}

.panchayats-page .intro-icon {
  font-size: 6rem;
  margin-bottom: 30px;
  filter: drop-shadow(0 6px 12px rgba(46,125,50,0.25));
}

.panchayats-page .intro-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1B5E20;
  margin: 0 0 28px 0;
}

.panchayats-page .intro-text {
  font-size: 1.25rem;
  line-height: 2.1;
  color: #444;
  max-width: 900px;
  margin: 0 auto;
}

.panchayats-page .intro-text strong {
  color: #1B5E20;
  font-weight: 800;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  padding: 3px 10px;
  border-radius: 6px;
}

/* 3-TIER SECTION */
.panchayats-page .tier-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #E8F5E9 100%);
}

.panchayats-page .tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.panchayats-page .tier-card {
  background: white;
  padding: 50px 40px;
  border-radius: 30px;
  box-shadow: 0 15px 50px rgba(46,125,50,0.15);
  border: 5px solid;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.panchayats-page .tier-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  transform: rotate(45deg);
  transition: all 0.7s ease;
}

.panchayats-page .tier-card:hover::before {
  top: -30%;
  right: -30%;
}

.panchayats-page .tier-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 70px rgba(46,125,50,0.3);
}

.panchayats-page .card-saffron {
  border-color: #FF9933;
  background: linear-gradient(135deg, #FFF8E1 0%, #ffffff 100%);
}

.panchayats-page .card-white {
  border-color: #1a237e;
  background: linear-gradient(135deg, #E3F2FD 0%, #ffffff 100%);
}

.panchayats-page .card-green {
  border-color: #2E7D32;
  background: linear-gradient(135deg, #E8F5E9 0%, #ffffff 100%);
}

.panchayats-page .tier-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

.panchayats-page .tier-level {
  display: inline-block;
  background: linear-gradient(135deg, #C8E6C9, #A5D6A7);
  color: #1B5E20;
  padding: 8px 22px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 18px;
  letter-spacing: 1.5px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5);
}

.panchayats-page .tier-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #1B5E20;
  margin: 0 0 12px 0;
}

.panchayats-page .tier-eng {
  font-size: 1.2rem;
  color: #666;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.panchayats-page .tier-divider {
  height: 5px;
  background: linear-gradient(90deg, #2E7D32, transparent);
  margin: 20px 0 25px 0;
  border-radius: 3px;
}

.panchayats-page .tier-desc {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #555;
  margin: 0 0 25px 0;
  font-weight: 600;
}

.panchayats-page .tier-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.panchayats-page .tier-list li {
  padding: 12px 0 12px 35px;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #555;
}

.panchayats-page .tier-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2E7D32;
  font-weight: 900;
  font-size: 1.4rem;
}

/* ARTICLES SECTION */
.panchayats-page .articles-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #E8F5E9 100%);
}

.panchayats-page .articles-grid {
  display: grid;
  gap: 40px;
  margin-top: 60px;
}

.panchayats-page .article-card {
  background: white;
  border-radius: 30px;
  padding: 45px;
  box-shadow: 0 15px 55px rgba(46,125,50,0.15);
  border-left: 10px solid;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.panchayats-page .article-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 70px rgba(46,125,50,0.25);
}

.panchayats-page .article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panchayats-page .article-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1B5E20;
  background: linear-gradient(135deg, #C8E6C9, #A5D6A7);
  padding: 10px 24px;
  border-radius: 30px;
  box-shadow: inset 0 3px 6px rgba(255,255,255,0.6);
}

.panchayats-page .article-tag {
  font-size: 1.05rem;
  color: #666;
  font-weight: 600;
}

.panchayats-page .article-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1B5E20;
  margin: 0 0 20px 0;
}

.panchayats-page .article-divider {
  height: 5px;
  background: linear-gradient(90deg, #2E7D32, transparent);
  margin: 20px 0 28px 0;
  border-radius: 3px;
}

.panchayats-page .article-content {
  margin-bottom: 28px;
}

.panchayats-page .article-clause {
  font-size: 1.15rem;
  line-height: 2.1;
  color: #333;
  margin: 20px 0;
}

.panchayats-page .article-clause strong {
  color: #1B5E20;
  font-weight: 800;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  padding: 3px 10px;
  border-radius: 5px;
}

.panchayats-page .article-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 20px 30px;
}

.panchayats-page .article-list li {
  padding: 12px 0 12px 30px;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.9;
}

.panchayats-page .article-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #2E7D32;
  font-weight: 900;
  font-size: 1.4rem;
}

.panchayats-page .article-note {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  padding: 20px 25px;
  border-radius: 15px;
  display: flex;
  gap: 15px;
  align-items: start;
  border-left: 5px solid #2E7D32;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5);
}

.panchayats-page .note-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.panchayats-page .note-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.panchayats-page .note-text strong {
  color: #1B5E20;
}

/* 11TH SCHEDULE SECTION */
.panchayats-page .schedule-section {
  padding: 100px 20px;
  background: white;
}

.panchayats-page .schedule-box {
  background: linear-gradient(135deg, #E8F5E9 0%, #FFFFFF 100%);
  padding: 50px 45px;
  border-radius: 30px;
  box-shadow: 0 15px 50px rgba(46,125,50,0.15);
  border: 4px solid #A5D6A7;
}

.panchayats-page .schedule-intro {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1B5E20;
  text-align: center;
  margin-bottom: 35px;
}

.panchayats-page .subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.panchayats-page .subject-item {
  background: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1rem;
  color: #555;
  box-shadow: 0 4px 15px rgba(46,125,50,0.1);
  border-left: 4px solid #2E7D32;
  transition: all 0.3s ease;
}

.panchayats-page .subject-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(46,125,50,0.2);
  border-left-width: 6px;
}

/* POINTS SECTION */
.panchayats-page .points-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #E8F5E9 100%);
}

.panchayats-page .points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.panchayats-page .point-card {
  background: linear-gradient(135deg, #E8F5E9 0%, #ffffff 100%);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(46,125,50,0.12);
  border: 3px solid #A5D6A7;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.panchayats-page .point-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(46,125,50,0.25);
  border-color: #2E7D32;
}

.panchayats-page .point-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.panchayats-page .point-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1B5E20;
  margin: 0 0 15px 0;
}

.panchayats-page .point-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

/* BACK BUTTON - PAGE के नीचे, FOOTER के ऊपर */
.panchayats-page .back-button-container {
  position: relative;
  margin: 50px 20px;
  text-align: center;
}

.panchayats-page .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 35px;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 10px 30px rgba(27,94,32,0.5);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 4px solid white;
}

.panchayats-page .back-btn:hover {
  transform: translateX(-8px) scale(1.08);
  box-shadow: 0 15px 45px rgba(27,94,32,0.7);
}

.panchayats-page .back-icon {
  font-size: 1.8rem;
  font-weight: 900;
}

.panchayats-page .back-text-hindi {
  font-size: 1.05rem;
  opacity: 0.95;
  padding-left: 8px;
  border-left: 2px solid rgba(255,255,255,0.6);
}

/* FOOTER */
.panchayats-page .part-footer {
  background: linear-gradient(180deg, #1B5E20 0%, #2E7D32 100%);
  color: white;
  padding: 70px 20px 35px;
}

.panchayats-page .footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.panchayats-page .footer-download {
  background: rgba(255,255,255,0.15);
  padding: 50px 35px;
  border-radius: 25px;
  text-align: center;
  backdrop-filter: blur(15px);
  border: 3px solid rgba(255,255,255,0.3);
  margin-bottom: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.panchayats-page .download-icon {
  font-size: 4.5rem;
  margin-bottom: 20px;
}

.panchayats-page .download-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin: 0 0 30px 0;
}

.panchayats-page .download-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 18px 50px;
  background: linear-gradient(135deg, #FF9933, #FF6F00);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Noto Sans Devanagari', sans-serif;
}

.panchayats-page .download-btn:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255,153,51,0.6);
}

.panchayats-page .btn-icon {
  font-size: 1.8rem;
}

.panchayats-page .footer-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  margin: 50px 0;
}

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

.panchayats-page .footer-tricolor {
  height: 5px;
  background: linear-gradient(90deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
  border-radius: 3px;
  margin: 25px 0;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.panchayats-page .footer-copyright {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.98);
  margin: 18px 0;
  font-weight: 600;
}

.panchayats-page .footer-copyright strong {
  color: #FFCC80;
}

/* PRINT */
@media print {
  .panchayats-page .back-button-container,
  .panchayats-page .part-footer,
  .panchayats-page button {
    display: none !important;
  }
  .panchayats-page {
    background: white !important;
  }
  .panchayats-page .article-card,
  .panchayats-page .tier-card {
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 2px solid #ccc !important;
  }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .panchayats-page .part-hero {
    padding: 90px 20px 80px;
  }
  
  .panchayats-page .part-badge {
    font-size: 1.5rem;
    padding: 14px 35px;
  }
  
  .panchayats-page .hero-title {
    font-size: 3.2rem;
  }
  
  .panchayats-page .hero-subtitle {
    font-size: 1.6rem;
  }
  
  .panchayats-page .hero-desc {
    font-size: 1.3rem;
    padding: 14px 30px;
  }
  
  .panchayats-page .section-title {
    font-size: 2.3rem;
  }
  
  .panchayats-page .article-card,
  .panchayats-page .tier-card {
    padding: 30px 25px;
  }
  
  .panchayats-page .article-title,
  .panchayats-page .tier-title {
    font-size: 1.8rem;
  }
  
  .panchayats-page .tier-grid,
  .panchayats-page .points-grid {
    grid-template-columns: 1fr;
  }
  
  .panchayats-page .back-btn {
    padding: 14px 28px;
    font-size: 1.05rem;
  }
  
  .panchayats-page .back-text-hindi {
    display: none;
  }
  
  .panchayats-page .subjects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .panchayats-page .part-badge {
    font-size: 1.3rem;
    padding: 12px 28px;
  }
  
  .panchayats-page .hero-title {
    font-size: 2.5rem;
  }
  
  .panchayats-page .hero-subtitle {
    font-size: 1.4rem;
    letter-spacing: 1.5px;
  }
  
  .panchayats-page .hero-desc {
    font-size: 1.1rem;
    padding: 12px 25px;
  }
  
  .panchayats-page .intro-box {
    padding: 40px 25px;
  }
  
  .panchayats-page .intro-title {
    font-size: 1.9rem;
  }
}
