/* FINAL PART PAGE - SCOPED CSS | TRICOLOR FINALE THEME | NO COPYRIGHT */
.final-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.final-page {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  background: linear-gradient(180deg, #FFF8E1 0%, #FFE0B2 25%, #FFFFFF 50%, #E8F5E9 75%, #E3F2FD 100%);
  color: #333;
  line-height: 1.7;
}

/* HERO SECTION - TRICOLOR FINALE THEME */
.final-page .part-hero {
  position: relative;
  background: linear-gradient(135deg, #FF9933 0%, #FFB74D 10%, #FFA726 20%, #FFFFFF 35%, #F5F5F5 50%, #E8F5E9 65%, #66BB6A 80%, #43A047 90%, #2E7D32 100%);
  padding: 120px 20px 100px;
  text-align: center;
  overflow: hidden;
  border-bottom: 8px solid #FF9933;
  box-shadow: 0 10px 40px rgba(255,153,51,0.4);
}

.final-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.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,0.30) 0%, transparent 50%);
  pointer-events: none;
}

/* Finale tricolor pattern */
.final-page .hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent 80px, rgba(255,153,51,0.06) 80px, rgba(255,153,51,0.06) 160px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(19,136,8,0.06) 80px, rgba(19,136,8,0.06) 160px);
  animation: finalePattern 30s linear infinite;
}

@keyframes finalePattern {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 160px 160px, 160px 160px; }
}

/* Floating finale icons */
.final-page .hero-overlay::after {
  content: '🇮🇳 🏁 ✍️';
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  opacity: 0.15;
  letter-spacing: 140px;
  animation: finaleFloat 18s ease-in-out infinite;
}

@keyframes finaleFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-40px) scale(1.08); }
}

.final-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);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

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

/* भाग 22 - TOP LINE - SEPARATE */
.final-page .part-badge {
  display: block;
  width: fit-content;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8E1 25%, #FFFFFF 50%, #E8F5E9 75%, #FFFFFF 100%);
  color: #E65100;
  padding: 18px 58px;
  border-radius: 25px;
  font-weight: 900;
  font-size: 2.4rem;
  margin-bottom: 42px;
  box-shadow: 0 18px 50px rgba(255,153,51,0.6), 
              inset 0 -6px 0 rgba(255,153,51,0.4),
              inset 0 4px 0 rgba(255,255,255,1);
  border: 6px solid #FF9933;
  letter-spacing: 4px;
  text-transform: uppercase;
  position: relative;
  transform: perspective(900px) rotateX(0deg);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.final-page .part-badge::before {
  content: '📜';
  font-size: 3.2rem;
  margin-right: 15px;
  display: inline-block;
  animation: scrollFinale 3.5s ease-in-out infinite;
}

@keyframes scrollFinale {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-10deg); }
  75% { transform: scale(1.15) rotate(10deg); }
}

.final-page .part-badge:hover {
  transform: perspective(900px) rotateX(-15deg) translateY(-12px) scale(1.1);
  box-shadow: 0 30px 75px rgba(255,153,51,0.8);
}

/* संक्षिप्त नाम, प्रारंभ... - SECOND LINE - SEPARATE */
.final-page .hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: #1B5E20;
  text-shadow: 0 6px 30px rgba(255,153,51,0.7),
               0 4px 10px rgba(0,0,0,0.5),
               0 0 70px rgba(255,255,255,0.8);
  margin: 0 0 30px 0;
  letter-spacing: -1px;
  line-height: 1.3;
  position: relative;
  display: block;
  width: 100%;
  padding: 0 40px;
}

.final-page .hero-title::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 12px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #FF9933 15%,
    #FFFFFF 35%, 
    #138808 50%,
    #FFFFFF 65%,
    #1976D2 85%,
    transparent 100%);
  border-radius: 6px;
  box-shadow: 0 0 50px rgba(255,255,255,1);
}

/* Short Title... - THIRD LINE */
.final-page .hero-subtitle {
  font-size: 1.8rem;
  color: #1B5E20;
  font-weight: 800;
  margin: 0 0 28px 0;
  text-shadow: 0 4px 18px rgba(255,255,255,0.95);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  width: 100%;
}

/* Articles - BOTTOM LINE */
.final-page .hero-desc {
  font-size: 1.8rem;
  color: #E65100;
  font-weight: 800;
  text-shadow: 0 4px 15px rgba(255,255,255,1);
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,248,225,0.98) 100%);
  display: inline-block;
  padding: 22px 55px;
  border-radius: 60px;
  backdrop-filter: blur(30px);
  border: 5px solid #FF9933;
  box-shadow: 0 18px 60px rgba(255,153,51,0.7),
              inset 0 4px 0 rgba(255,255,255,1);
  letter-spacing: 2.5px;
}

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

.final-page .section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FF9933, #138808);
  color: white;
  padding: 15px 35px;
  border-radius: 55px;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(255,153,51,0.6);
}

.final-page .section-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #E65100;
  margin: 0 0 60px 0;
  text-align: center;
  text-shadow: 4px 4px 10px rgba(255,153,51,0.25);
}

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

.final-page .intro-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8E1 100%);
  padding: 70px 60px;
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(255,153,51,0.2);
  text-align: center;
  border: 6px solid #FFB74D;
  position: relative;
}

.final-page .intro-box::before {
  content: '🏁';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4.5rem;
  background: white;
  padding: 18px 35px;
  border-radius: 50%;
  box-shadow: 0 12px 35px rgba(255,153,51,0.35);
}

.final-page .intro-icon {
  font-size: 7rem;
  margin-bottom: 40px;
  filter: drop-shadow(0 10px 20px rgba(255,153,51,0.35));
}

.final-page .intro-title {
  font-size: 2.9rem;
  font-weight: 800;
  color: #E65100;
  margin: 0 0 35px 0;
}

.final-page .intro-text {
  font-size: 1.35rem;
  line-height: 2.3;
  color: #444;
  max-width: 1000px;
  margin: 0 auto;
}

.final-page .intro-text strong {
  color: #E65100;
  font-weight: 800;
  background: linear-gradient(135deg, #FFF8E1, #FFE0B2);
  padding: 5px 14px;
  border-radius: 8px;
}

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

.final-page .articles-grid {
  display: grid;
  gap: 50px;
  margin-top: 80px;
}

.final-page .article-card {
  background: white;
  border-radius: 40px;
  padding: 55px;
  box-shadow: 0 25px 75px rgba(255,153,51,0.2);
  border-left: 14px solid;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.final-page .article-card:hover {
  transform: translateY(-18px);
  box-shadow: 0 35px 90px rgba(255,153,51,0.35);
}

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

.final-page .card-white {
  border-color: #757575;
  background: linear-gradient(135deg, #FAFAFA 0%, #ffffff 100%);
}

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

.final-page .card-blue {
  border-color: #1976D2;
  background: linear-gradient(135deg, #E3F2FD 0%, #ffffff 100%);
}

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

.final-page .article-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #E65100;
  background: linear-gradient(135deg, #FFE0B2, #FFCC80);
  padding: 14px 32px;
  border-radius: 40px;
  box-shadow: inset 0 4px 8px rgba(255,255,255,0.8);
}

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

.final-page .article-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #E65100;
  margin: 0 0 25px 0;
}

.final-page .article-divider {
  height: 6px;
  background: linear-gradient(90deg, #FF9933, transparent);
  margin: 25px 0 35px 0;
  border-radius: 3px;
}

.final-page .article-content {
  margin-bottom: 35px;
}

.final-page .article-clause {
  font-size: 1.2rem;
  line-height: 2.2;
  color: #333;
  margin: 22px 0;
}

.final-page .article-clause strong {
  color: #E65100;
  font-weight: 800;
  background: linear-gradient(135deg, #FFF8E1, #FFE0B2);
  padding: 4px 12px;
  border-radius: 6px;
}

.final-page .article-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 22px 35px;
}

.final-page .article-list li {
  padding: 14px 0 14px 35px;
  position: relative;
  font-size: 1.15rem;
  line-height: 2;
}

.final-page .article-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #FF9933;
  font-weight: 900;
  font-size: 1.5rem;
}

.final-page .article-note {
  background: linear-gradient(135deg, #FFF8E1, #FFE0B2);
  padding: 22px 28px;
  border-radius: 18px;
  display: flex;
  gap: 18px;
  align-items: start;
  border-left: 6px solid #FF9933;
  box-shadow: inset 0 3px 6px rgba(255,255,255,0.6);
}

.final-page .note-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.final-page .note-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #444;
}

.final-page .note-text strong {
  color: #E65100;
}

/* TIMELINE SECTION */
.final-page .timeline-section {
  padding: 120px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #E3F2FD 100%);
}

.final-page .timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 70px;
}

.final-page .timeline-item {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8E1 100%);
  padding: 45px 35px;
  border-radius: 30px;
  box-shadow: 0 20px 55px rgba(255,153,51,0.18);
  border: 4px solid #FFB74D;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-page .timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #FF9933, #FFFFFF, #138808);
}

.final-page .timeline-item:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 30px 75px rgba(255,153,51,0.35);
  border-color: #FF9933;
}

.final-page .timeline-date {
  display: inline-block;
  background: linear-gradient(135deg, #FF9933, #FF8F00);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(255,153,51,0.4);
}

.final-page .timeline-icon {
  font-size: 4.5rem;
  margin-bottom: 25px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.final-page .timeline-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #E65100;
  margin: 0 0 15px 0;
}

.final-page .timeline-desc {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #555;
}

/* SIGNATURE SECTION */
.final-page .signature-section {
  padding: 120px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #F3E5F5 100%);
}

.final-page .signature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 70px;
}

.final-page .signature-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8E1 100%);
  padding: 40px 30px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(255,153,51,0.15);
  border: 3px solid #FFB74D;
  transition: all 0.5s ease;
}

.final-page .signature-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 60px rgba(255,153,51,0.3);
  border-color: #FF9933;
}

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

.final-page .signature-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #E65100;
  margin: 0 0 10px 0;
}

.final-page .signature-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FF8F00;
  margin: 0 0 15px 0;
}

.final-page .signature-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
}

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

.final-page .points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  margin-top: 70px;
}

.final-page .point-card {
  background: linear-gradient(135deg, #FFF8E1 0%, #ffffff 100%);
  padding: 50px 40px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 20px 55px rgba(255,153,51,0.18);
  border: 4px solid #FFB74D;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.final-page .point-card:hover {
  transform: translateY(-15px) scale(1.04);
  box-shadow: 0 30px 75px rgba(255,153,51,0.35);
  border-color: #FF9933;
}

.final-page .point-icon {
  font-size: 4.5rem;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.final-page .point-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #E65100;
  margin: 0 0 20px 0;
}

.final-page .point-text {
  font-size: 1.15rem;
  line-height: 2;
  color: #555;
}

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

.final-page .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 45px;
  background: linear-gradient(135deg, #FF9933 0%, #138808 100%);
  color: white;
  text-decoration: none;
  border-radius: 55px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 12px 35px rgba(255,153,51,0.6);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 4px solid white;
}

.final-page .back-btn:hover {
  transform: translateX(-10px) scale(1.1);
  box-shadow: 0 18px 50px rgba(255,153,51,0.8);
}

.final-page .back-icon {
  font-size: 2rem;
  font-weight: 900;
}

.final-page .back-text-hindi {
  font-size: 1.1rem;
  opacity: 0.98;
  padding-left: 10px;
  border-left: 2px solid rgba(255,255,0.7);
}

/* FOOTER */
.final-page .part-footer {
  background: linear-gradient(180deg, #FF9933 0%, #138808 100%);
  color: white;
  padding: 80px 20px 40px;
}

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

.final-page .footer-download {
  background: rgba(255,255,255,0.18);
  padding: 55px 40px;
  border-radius: 30px;
  text-align: center;
  backdrop-filter: blur(20px);
  border: 4px solid rgba(255,255,255,0.4);
  margin-bottom: 55px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.25);
}

.final-page .download-icon {
  font-size: 5rem;
  margin-bottom: 25px;
}

.final-page .download-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 35px 0;
}

.final-page .download-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 20px 55px;
  background: linear-gradient(135deg, #1976D2, #1565C0);
  color: white;
  border: none;
  border-radius: 55px;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Noto Sans Devanagari', sans-serif;
}

.final-page .download-btn:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 18px 45px rgba(25,118,210,0.7);
}

.final-page .btn-icon {
  font-size: 2rem;
}

.final-page .footer-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  margin: 55px 0;
}

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

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

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

.final-page .footer-copyright strong {
  color: #FFE0B2;
}

.final-page .footer-end {
  font-size: 1.8rem;
  color: rgba(255,255,255,1);
  margin: 30px 0 20px 0;
  font-weight: 900;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
  letter-spacing: 2px;
}

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

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .final-page .part-hero {
    padding: 90px 20px 80px;
  }
  
  .final-page .part-badge {
    font-size: 1.6rem;
    padding: 16px 40px;
  }
  
  .final-page .hero-title {
    font-size: 2.3rem;
  }
  
  .final-page .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .final-page .hero-desc {
    font-size: 1.3rem;
    padding: 16px 35px;
  }
  
  .final-page .section-title {
    font-size: 2.3rem;
  }
  
  .final-page .article-card,
  .final-page .timeline-item {
    padding: 35px 30px;
  }
  
  .final-page .article-title,
  .final-page .timeline-title {
    font-size: 1.8rem;
  }
  
  .final-page .timeline-grid,
  .final-page .signature-grid,
  .final-page .points-grid {
    grid-template-columns: 1fr;
  }
  
  .final-page .back-btn {
    padding: 16px 32px;
    font-size: 1.05rem;
  }
  
  .final-page .back-text-hindi {
    display: none;
  }
}

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