/* OFFICIAL LANGUAGE PAGE - SCOPED CSS | LANGUAGE BLUE-GOLD THEME | NO COPYRIGHT */
.language-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* HERO SECTION - LANGUAGE BLUE-GOLD THEME */
.language-page .part-hero {
  position: relative;
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 15%, #1976D2 30%, #FF6F00 45%, #FF8F00 60%, #FFA000 75%, #FFB300 90%, #FFC107 100%);
  padding: 120px 20px 100px;
  text-align: center;
  overflow: hidden;
  border-bottom: 8px solid #0D47A1;
  box-shadow: 0 10px 40px rgba(13,71,161,0.3);
}

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

/* Language pattern */
.language-page .hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(30deg, transparent 70px, rgba(255,255,255,0.04) 70px, rgba(255,255,255,0.04) 140px),
    repeating-linear-gradient(-30deg, transparent, transparent 70px, rgba(255,255,255,0.04) 70px, rgba(255,255,255,0.04) 140px);
  animation: languagePattern 22s linear infinite;
}

@keyframes languagePattern {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 140px 140px, -140px 140px; }
}

/* Floating language icons */
.language-page .hero-overlay::after {
  content: '🗣️ 📖 ✍️';
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  opacity: 0.12;
  letter-spacing: 140px;
  animation: languageFloat 16s ease-in-out infinite;
}

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

.language-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);
  }
}

/* भाग 17 - TOP LINE - SEPARATE */
.language-page .part-badge {
  display: block;
  width: fit-content;
  background: linear-gradient(135deg, #FFFFFF 0%, #E3F2FD 25%, #FFF8E1 50%, #E8F5E9 75%, #FFFFFF 100%);
  color: #0D47A1;
  padding: 18px 58px;
  border-radius: 25px;
  font-weight: 900;
  font-size: 2.4rem;
  margin-bottom: 42px;
  box-shadow: 0 18px 50px rgba(13,71,161,0.5), 
              inset 0 -6px 0 rgba(13,71,161,0.3),
              inset 0 4px 0 rgba(255,255,255,1);
  border: 6px solid #1565C0;
  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);
}

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

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

.language-page .part-badge:hover {
  transform: perspective(900px) rotateX(-15deg) translateY(-12px) scale(1.1);
  box-shadow: 0 30px 75px rgba(13,71,161,0.7);
}

/* राजभाषा - SECOND LINE - SEPARATE */
.language-page .hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 6px 30px rgba(13,71,161,0.9),
               0 4px 10px rgba(0,0,0,0.6),
               0 0 70px rgba(255,255,255,0.5);
  margin: 0 0 30px 0;
  letter-spacing: -3px;
  line-height: 1.1;
  position: relative;
  display: block;
  width: 100%;
  padding: 0 40px;
}

.language-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%, 
    #0D47A1 50%,
    #FFFFFF 65%,
    #FFB300 85%,
    transparent 100%);
  border-radius: 6px;
  box-shadow: 0 0 50px rgba(255,255,255,1);
}

/* Official Language - THIRD LINE */
.language-page .hero-subtitle {
  font-size: 2.2rem;
  color: #FFFFFF;
  font-weight: 800;
  margin: 0 0 28px 0;
  text-shadow: 0 4px 18px rgba(13,71,161,0.95);
  letter-spacing: 4px;
  text-transform: uppercase;
  display: block;
  width: 100%;
}

/* Articles - BOTTOM LINE */
.language-page .hero-desc {
  font-size: 1.8rem;
  color: #0D47A1;
  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(227,242,253,0.98) 100%);
  display: inline-block;
  padding: 22px 55px;
  border-radius: 60px;
  backdrop-filter: blur(30px);
  border: 5px solid #1565C0;
  box-shadow: 0 18px 60px rgba(13,71,161,0.6),
              inset 0 4px 0 rgba(255,255,255,1);
  letter-spacing: 2.5px;
}

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

.language-page .section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0D47A1, #1976D2);
  color: white;
  padding: 15px 35px;
  border-radius: 55px;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(13,71,161,0.6);
}

.language-page .section-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #0D47A1;
  margin: 0 0 60px 0;
  text-align: center;
  text-shadow: 4px 4px 10px rgba(13,71,161,0.25);
}

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

.language-page .intro-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #E3F2FD 100%);
  padding: 70px 60px;
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(13,71,161,0.2);
  text-align: center;
  border: 6px solid #90CAF9;
  position: relative;
}

.language-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(13,71,161,0.35);
}

.language-page .intro-icon {
  font-size: 7rem;
  margin-bottom: 40px;
  filter: drop-shadow(0 10px 20px rgba(13,71,161,0.35));
}

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

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

.language-page .intro-text strong {
  color: #0D47A1;
  font-weight: 800;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  padding: 5px 14px;
  border-radius: 8px;
}

/* CHAPTERS SECTION */
.language-page .chapters-section {
  padding: 120px 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8E1 100%);
}

.language-page .chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 50px;
  margin-top: 80px;
}

.language-page .chapter-card {
  background: white;
  padding: 60px 50px;
  border-radius: 40px;
  box-shadow: 0 25px 70px rgba(13,71,161,0.2);
  border: 6px solid;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.language-page .chapter-card:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow: 0 35px 90px rgba(13,71,161,0.4);
}

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

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

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

.language-page .card-blue {
  border-color: #1565C0;
  background: linear-gradient(135deg, #E1F5FE 0%, #ffffff 100%);
}

.language-page .chapter-icon {
  font-size: 6rem;
  margin-bottom: 30px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}

.language-page .chapter-number {
  display: inline-block;
  background: linear-gradient(135deg, #BBDEFB, #90CAF9);
  color: #0D47A1;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  box-shadow: inset 0 3px 6px rgba(255,255,255,0.6);
}

.language-page .chapter-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0D47A1;
  margin: 0 0 14px 0;
}

.language-page .chapter-eng {
  font-size: 1.3rem;
  color: #666;
  font-weight: 600;
  margin: 0 0 22px 0;
}

.language-page .chapter-divider {
  height: 6px;
  background: linear-gradient(90deg, #1976D2, transparent);
  margin: 25px 0 32px 0;
  border-radius: 3px;
}

.language-page .chapter-range {
  font-size: 1.15rem;
  color: #0D47A1;
  font-weight: 700;
  margin: 0 0 22px 0;
}

.language-page .chapter-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.language-page .chapter-list li {
  padding: 12px 0 12px 35px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.language-page .chapter-list li::before {
  content: '•';
  position: absolute;
  left: 10px;
  color: #1976D2;
  font-weight: 900;
  font-size: 1.8rem;
}

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

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

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

.language-page .article-card:hover {
  transform: translateY(-18px);
  box-shadow: 0 35px 90px rgba(13,71,161,0.35);
}

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

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

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

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

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

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

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

.language-page .article-clause strong {
  color: #0D47A1;
  font-weight: 800;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  padding: 4px 12px;
  border-radius: 6px;
}

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

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

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

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

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

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

.language-page .note-text strong {
  color: #0D47A1;
}

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

.language-page .schedule-intro {
  background: linear-gradient(135deg, #FFFFFF 0%, #E3F2FD 100%);
  padding: 40px 50px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(13,71,161,0.15);
  margin-bottom: 50px;
  border: 4px solid #90CAF9;
}

.language-page .schedule-text {
  font-size: 1.3rem;
  line-height: 2.2;
  color: #444;
  text-align: center;
}

.language-page .schedule-text strong {
  color: #0D47A1;
  font-weight: 800;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  padding: 5px 14px;
  border-radius: 8px;
}

.language-page .languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.language-page .language-item {
  background: linear-gradient(135deg, #FFFFFF 0%, #E3F2FD 100%);
  padding: 20px 25px;
  border-radius: 20px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0D47A1;
  box-shadow: 0 10px 30px rgba(13,71,161,0.15);
  border: 3px solid #90CAF9;
  transition: all 0.4s ease;
}

.language-page .language-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(13,71,161,0.3);
  border-color: #1976D2;
}

.language-page .schedule-note {
  background: linear-gradient(135deg, #FFF8E1, #FFE0B2);
  padding: 25px 35px;
  border-radius: 20px;
  display: flex;
  gap: 18px;
  align-items: start;
  border-left: 6px solid #FF8F00;
  box-shadow: inset 0 3px 6px rgba(255,255,255,0.6);
}

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

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

.language-page .point-card {
  background: linear-gradient(135deg, #E3F2FD 0%, #ffffff 100%);
  padding: 50px 40px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 20px 55px rgba(13,71,161,0.18);
  border: 4px solid #90CAF9;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.language-page .point-card:hover {
  transform: translateY(-15px) scale(1.04);
  box-shadow: 0 30px 75px rgba(13,71,161,0.35);
  border-color: #1976D2;
}

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

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

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

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

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

.language-page .back-btn:hover {
  transform: translateX(-10px) scale(1.1);
  box-shadow: 0 18px 50px rgba(13,71,161,0.8);
}

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

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

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

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

.language-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);
}

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

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

.language-page .download-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 20px 55px;
  background: linear-gradient(135deg, #FF9933, #FF6F00);
  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;
}

.language-page .download-btn:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 18px 45px rgba(255,153,51,0.7);
}

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

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

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

.language-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);
}

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

.language-page .footer-copyright strong {
  color: #90CAF9;
}

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

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

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