/* STEP 1 CSS - COLORFUL VERSION */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700;800&family=Poppins:wght@600;700&display=swap');

.preamble-page {
  font-family: 'Noto Sans Devanagari', sans-serif;
  margin: 0;
  padding: 0;
}

/* SECTION 1: COLORFUL HEADING + CONTENT */
.preamble-heading-section {
  background: linear-gradient(135deg, #FFE5B4 0%, #E6F3FF 50%, #D4EDDA 100%);
  padding: 70px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated Background Circles */
.preamble-heading-section::before,
.preamble-heading-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.preamble-heading-section::before {
  top: 10%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,153,51,0.2) 0%, transparent 70%);
}

.preamble-heading-section::after {
  bottom: 10%;
  left: 5%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(19,136,8,0.2) 0%, transparent 70%);
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.heading-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.chakra-wrapper {
  display: inline-block;
  padding: 15px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0,0,128,0.15);
  margin-bottom: 20px;
}

.ashok-chakra {
  width: 55px;
  height: 55px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000080" stroke-width="2"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="2" fill="%23000080"/><path d="M12 2v4M12 18v4M2 12h4M18 12h4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83"/></svg>') center/contain no-repeat;
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.main-heading {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #000080 0%, #FF9933 50%, #138808 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
  line-height: 1.2;
}

.sub-heading {
  font-size: 1.4rem;
  color: #1a237e;
  font-weight: 700;
  margin: 0 0 25px 0;
  font-family: 'Poppins', sans-serif;
}

.tricolor-line {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 30px;
  width: 180px;
}

.tricolor-line span {
  height: 5px;
  flex: 1;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.tricolor-line .saffron { background: #FF9933; }
.tricolor-line .white { background: #FFFFFF; border: 1px solid #ddd; }
.tricolor-line .green { background: #138808; }

.intro-content {
  background: rgba(255,255,255,0.9);
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  margin-top: 20px;
}

.intro-text {
  font-size: 1.25rem;
  color: #2c3e50;
  line-height: 1.8;
  margin: 0 0 25px 0;
  font-weight: 600;
}

.highlight-orange {
  background: linear-gradient(120deg, #FFE0B2 0%, #FFCC80 100%);
  padding: 3px 8px;
  border-radius: 6px;
  color: #E65100;
  font-weight: 700;
}

.highlight-green {
  background: linear-gradient(120deg, #C8E6C9 0%, #A5D6A7 100%);
  padding: 3px 8px;
  border-radius: 6px;
  color: #1B5E20;
  font-weight: 700;
}

.key-points {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.point-box {
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.point-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.point-1 { border-color: #FF9933; }
.point-1:hover { background: #FFF3E0; }

.point-2 { border-color: #000080; }
.point-2:hover { background: #E8EAF6; }

.point-3 { border-color: #138808; }
.point-3:hover { background: #E8F5E9; }

.point-icon {
  font-size: 1.5rem;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .preamble-heading-section {
    padding: 50px 15px 40px;
  }
  .main-heading { 
    font-size: 2.2rem; 
  }
  .sub-heading { 
    font-size: 1.15rem; 
  }
  .intro-text {
    font-size: 1.1rem;
  }
  .intro-content {
    padding: 25px 20px;
  }
  .key-points {
    flex-direction: column;
  }
  .point-box {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-heading { font-size: 1.8rem; }
  .sub-heading { font-size: 1rem; }
  .ashok-chakra { width: 45px; height: 45px; }
}


/* STEP 2 CSS - PREAMBLE ONLY */
.preamble-only-section {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFFFF 50%, #E8F5E9 100%);
  padding: 70px 20px;
}

.section-container {
  max-width: 950px;
  margin: 0 auto;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FF9933 0%, #138808 100%);
  color: white;
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #000080;
  margin: 0 0 35px 0;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.08);
}

.preamble-toggle-card {
  background: white;
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.12);
  overflow: hidden;
  border: 4px solid transparent;
  background-image: linear-gradient(white, white), 
                    linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.language-toggle {
  display: flex;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
  padding: 18px;
  gap: 12px;
}

.toggle-btn {
  flex: 1;
  padding: 14px 25px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 12px;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #555;
}

.toggle-btn.active {
  background: linear-gradient(135deg, #000080, #1a237e);
  color: white;
  border-color: #000080;
  box-shadow: 0 6px 20px rgba(0,0,128,0.35);
  transform: translateY(-3px);
}

.toggle-btn:hover:not(.active) {
  background: #e3f2fd;
  border-color: #1976d2;
  transform: translateY(-2px);
}

.preamble-content {
  display: none;
  padding: 40px 45px 50px;
}

.preamble-content.active {
  display: block;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.preamble-box {
  position: relative;
  padding-left: 25px;
  border-left: 5px solid #FF9933;
}

.preamble-box::before {
  content: '“';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 5rem;
  color: rgba(255,153,51,0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

.preamble-box p {
  font-size: 1.2rem;
  line-height: 2.3;
  color: #1a237e;
  margin: 0 0 18px 0;
  font-weight: 500;
}

#english-preamble .preamble-box p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  line-height: 2.1;
  color: #0D47A1;
}

.preamble-box p:last-child {
  margin-bottom: 0;
  padding-top: 15px;
  border-top: 2px dashed #FFCC80;
}

.preamble-box strong {
  color: #E65100;
  font-weight: 800;
  font-size: 1.05em;
  background: linear-gradient(120deg, #FFF3E0 0%, #FFE0B2 100%);
  padding: 2px 8px;
  border-radius: 5px;
}

#english-preamble .preamble-box strong {
  color: #1B5E20;
  background: linear-gradient(120deg, #E8F5E9 0%, #C8E6C9 100%);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.1rem;
  }
  .preamble-content {
    padding: 30px 25px;
  }
  .preamble-box {
    padding-left: 20px;
    border-left-width: 4px;
  }
  .preamble-box p {
    font-size: 1.08rem;
    line-height: 2.1;
  }
  #english-preamble .preamble-box p {
    font-size: 1.02rem;
  }
  .language-toggle {
    flex-direction: column;
    padding: 15px;
  }
  .toggle-btn {
    font-size: 1rem;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  .preamble-box p {
    font-size: 1rem;
    line-height: 2;
  }
}


/* STEP 3 CSS - KEYWORDS SECTION */
.keywords-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  padding: 70px 20px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-desc {
  text-align: center;
  font-size: 1.15rem;
  color: #555;
  margin: -15px 0 40px 0;
  font-weight: 600;
}

.keywords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.keyword-card {
  background: white;
  padding: 30px 25px;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-top: 5px solid;
  position: relative;
  overflow: hidden;
}

.keyword-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.keyword-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

/* Color Themes */
.card-saffron { border-top-color: #FF9933; }
.card-saffron:hover { box-shadow: 0 15px 45px rgba(255,153,51,0.3); }

.card-orange { border-top-color: #FF6F00; }
.card-orange:hover { box-shadow: 0 15px 45px rgba(255,111,0,0.3); }

.card-blue { border-top-color: #1976D2; }
.card-blue:hover { box-shadow: 0 15px 45px rgba(25,118,210,0.3); }

.card-purple { border-top-color: #7B1FA2; }
.card-purple:hover { box-shadow: 0 15px 45px rgba(123,31,162,0.3); }

.card-green { border-top-color: #138808; }
.card-green:hover { box-shadow: 0 15px 45px rgba(19,136,8,0.3); }

.card-red { border-top-color: #D32F2F; }
.card-red:hover { box-shadow: 0 15px 45px rgba(211,47,47,0.3); }

.card-pink { border-top-color: #C2185B; }
.card-pink:hover { box-shadow: 0 15px 45px rgba(194,24,91,0.3); }

.card-cyan { border-top-color: #0097A7; }
.card-cyan:hover { box-shadow: 0 15px 45px rgba(0,151,167,0.3); }

.card-indigo { border-top-color: #303F9F; }
.card-indigo:hover { box-shadow: 0 15px 45px rgba(48,63,159,0.3); }

.card-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.card-title-hindi {
  font-size: 1.8rem;
  font-weight: 800;
  color: #000080;
  margin: 0 0 5px 0;
  text-align: center;
}

.card-title-eng {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #666;
  margin: 0 0 15px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, currentColor 50%, transparent 100%);
  margin: 0 0 18px 0;
  opacity: 0.3;
}

.card-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin: 0;
  text-align: center;
}

.card-desc strong {
  color: #000080;
  font-weight: 700;
  background: linear-gradient(120deg, #FFF3E0 0%, #FFE0B2 100%);
  padding: 2px 6px;
  border-radius: 4px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .keywords-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .keyword-card {
    padding: 25px 20px;
  }
  .card-title-hindi {
    font-size: 1.6rem;
  }
  .card-desc {
    font-size: 1rem;
  }
  .card-icon {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  .card-title-hindi {
    font-size: 1.4rem;
  }
}


/* STEP 4 CSS - TIMELINE SECTION */
.timeline-section {
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 40px;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #FF9933 0%, #000080 50%, #138808 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
}

.timeline-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 4px solid white;
  box-shadow: 0 0 0 4px currentColor, 0 4px 15px rgba(0,0,0,0.2);
  z-index: 2;
}

.dot-saffron { background: #FF9933; color: #FF9933; }
.dot-blue { background: #1976D2; color: #1976D2; }
.dot-green { background: #138808; color: #138808; }
.dot-orange { background: #FF6F00; color: #FF6F00; }
.dot-purple { background: #7B1FA2; color: #7B1FA2; }

.timeline-content {
  background: white;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  max-width: 450px;
  transition: all 0.4s ease;
  border-left: 5px solid currentColor;
}

.timeline-item.left .timeline-content {
  text-align: right;
  border-left: none;
  border-right: 5px solid currentColor;
}

.timeline-content:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.timeline-date {
  display: inline-block;
  background: linear-gradient(135deg, #000080, #1a237e);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,128,0.3);
}

.timeline-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #000080;
  margin: 0 0 12px 0;
}

.timeline-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin: 0 0 15px 0;
}

.timeline-text strong {
  color: #E65100;
  font-weight: 700;
  background: linear-gradient(120deg, #FFF3E0 0%, #FFE0B2 100%);
  padding: 2px 6px;
  border-radius: 4px;
}

.timeline-tag {
  display: inline-block;
  background: #E8EAF6;
  color: #1a237e;
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

.info-box {
  background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  gap: 20px;
  align-items: start;
  box-shadow: 0 8px 25px rgba(3,169,244,0.2);
  border-left: 6px solid #0288D1;
  margin-top: 50px;
}

.info-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 1.4rem;
  color: #01579B;
  margin: 0 0 10px 0;
  font-weight: 800;
}

.info-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #0277BD;
  margin: 0;
}

.info-content strong {
  color: #01579B;
  font-weight: 800;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }
  
  .timeline-item,
  .timeline-item.right {
    justify-content: flex-start;
    padding-left: 70px;
    padding-right: 15px;
  }
  
  .timeline-item.left .timeline-content {
    text-align: left;
    border-right: none;
    border-left: 5px solid currentColor;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .timeline-content {
    max-width: 100%;
    padding: 20px 25px;
  }
  
  .timeline-heading {
    font-size: 1.3rem;
  }
  
  .timeline-text {
    font-size: 1rem;
  }
  
  .info-box {
    flex-direction: column;
    padding: 25px 20px;
  }
  
  .info-icon {
    font-size: 2.5rem;
  }
}



/* word by word explain */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

.preamble-explainer {
  font-family: 'Hind', 'Inter', sans-serif;
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

.preamble-explainer .explainer-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 30px;
  background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #008148 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.preamble-explainer .explainer-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000080' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.preamble-explainer .explainer-title {
  font-size: 36px;
  font-weight: 700;
  color: #000080;
  margin: 0 0 8px 0;
  position: relative;
}

.preamble-explainer .explainer-tagline {
  font-size: 15px;
  color: #004E89;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.preamble-explainer .words-wrapper {
  position: relative;
}

.preamble-explainer .words-wrapper::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #FF6B35 0%, #004E89 100%);
  border-radius: 3px;
}

.preamble-explainer .word-item {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.preamble-explainer .word-item:last-child {
  margin-bottom: 0;
}

.preamble-explainer .word-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  border: 3px solid #FF6B35;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #FF6B35;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.preamble-explainer .word-item:nth-child(even) .word-number {
  border-color: #004E89;
  color: #004E89;
}

.preamble-explainer .word-item:nth-child(3n) .word-number {
  border-color: #008148;
  color: #008148;
}

.preamble-explainer .word-card {
  flex: 1;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
}

.preamble-explainer .word-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.preamble-explainer .word-card-header {
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  padding: 22px 28px;
  border-bottom: 2px solid #E5E7EB;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.preamble-explainer .word-name {
  font-size: 28px;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
}

.preamble-explainer .word-english {
  font-size: 14px;
  color: #004E89;
  font-weight: 600;
  background: rgba(0, 78, 137, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
}

.preamble-explainer .word-details {
  padding: 28px;
}

.preamble-explainer .detail-point {
  margin-bottom: 24px;
}

.preamble-explainer .detail-point:last-child {
  margin-bottom: 0;
}

.preamble-explainer .point-title {
  font-size: 18px;
  font-weight: 600;
  color: #000080;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preamble-explainer .point-title::before {
  content: '▸';
  color: #FF6B35;
  font-size: 20px;
}

.preamble-explainer .detail-point p {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin: 0 0 10px 0;
}

.preamble-explainer .detail-point p:last-child {
  margin-bottom: 0;
}

.preamble-explainer .detail-point ul {
  margin: 0;
  padding-left: 20px;
}

.preamble-explainer .detail-point li {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 8px;
}

.preamble-explainer .detail-point li b {
  color: #004E89;
  font-weight: 600;
}

.preamble-explainer .detail-point mark {
  background: linear-gradient(120deg, rgba(255, 153, 51, 0.3) 0%, rgba(255, 153, 51, 0.3) 100%);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
  color: #000080;
}

.preamble-explainer .detail-point.highlight {
  background: linear-gradient(135deg, rgba(0, 78, 137, 0.04) 0%, rgba(255, 107, 53, 0.04) 100%);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #FF6B35;
}

.preamble-explainer .highlight p a {
  text-decoration:none; color: #374151;
}
.preamble-explainer .detail-point blockquote {
  margin: 14px 0 0 0;
  padding: 12px 16px;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  font-weight: 600;
  color: #004E89;
  text-align: center;
  font-size: 15px;
}

@media (max-width: 640px) {
  .preamble-explainer .explainer-title {
    font-size: 28px;
  }
  .preamble-explainer .words-wrapper::before {
    left: 20px;
  }
  .preamble-explainer .word-item {
    gap: 16px;
  }
  .preamble-explainer .word-number {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  .preamble-explainer .word-name {
    font-size: 24px;
  }
  .preamble-explainer .word-details {
    padding: 20px;
  }
}



/* case laws */
/* PREAMBLE CASE LAWS - SCOPED CSS */
.preamble-cases-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}
.preamble-cases-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}
.preamble-cases-section .cases-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.preamble-cases-section .cases-header {
  text-align: center;
  margin-bottom: 60px;
  animation: preamble-fadeInDown 0.8s ease;
}
.preamble-cases-section .header-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  animation: preamble-bounce 2s infinite;
}
.preamble-cases-section .cases-title {
  font-size: 3rem;
  color: #fff;
  margin: 0 0 10px 0;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.preamble-cases-section .cases-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}
.preamble-cases-section .header-divider {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.preamble-cases-section .header-divider span {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #FF9933, #fff, #138808);
  border-radius: 2px;
}
.preamble-cases-section .cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}
.preamble-cases-section .case-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
  overflow: hidden;
  animation: preamble-fadeInUp 0.6s ease;
}
.preamble-cases-section .case-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.preamble-cases-section .case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--card-color-1), var(--card-color-2));
}
.preamble-cases-section .case-card-1 { --card-color-1: #f093fb; --card-color-2: #f5576c; }
.preamble-cases-section .case-card-2 { --card-color-1: #ffd700; --card-color-2: #ff8c00; }
.preamble-cases-section .case-card-3 { --card-color-1: #4facfe; --card-color-2: #00f2fe; }
.preamble-cases-section .case-card-4 { --card-color-1: #43e97b; --card-color-2: #38f9d7; }
.preamble-cases-section .case-card-5 { --card-color-1: #fa709a; --card-color-2: #fee140; }
.preamble-cases-section .case-card-6 { --card-color-1: #a8edea; --card-color-2: #fed6e3; }

.preamble-cases-section .case-year {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--card-color-1), var(--card-color-2));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.preamble-cases-section .case-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}
.preamble-cases-section .case-name {
  font-size: 1.5rem;
  color: #2d3748;
  margin: 0 0 10px 0;
  font-weight: 700;
}
.preamble-cases-section .case-citation {
  font-size: 0.85rem;
  color: #718096;
  margin: 0 0 20px 0;
  font-style: italic;
  line-height: 1.6;
}
.preamble-cases-section .case-content {
  margin-bottom: 20px;
}
.preamble-cases-section .case-point {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: start;
}
.preamble-cases-section .point-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.preamble-cases-section .case-point p {
  margin: 0;
  color: #4a5568;
  line-height: 1.6;
  font-size: 0.95rem;
}
.preamble-cases-section .case-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--card-color-1), var(--card-color-2));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.preamble-cases-section .tag-gold { background: linear-gradient(135deg, #ffd700, #ff8c00); }
.preamble-cases-section .tag-green { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.preamble-cases-section .tag-blue { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.preamble-cases-section .tag-saffron { background: linear-gradient(135deg, #fa709a, #fee140); }
.preamble-cases-section .tag-purple { background: linear-gradient(135deg, #a8edea, #fed6e3); }

.preamble-cases-section .summary-box {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: preamble-fadeInUp 0.8s ease 0.4s both;
}
.preamble-cases-section .summary-title {
  text-align: center;
  font-size: 2rem;
  color: #2d3748;
  margin: 0 0 30px 0;
}
.preamble-cases-section .summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.preamble-cases-section .summary-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  color: white;
  transition: transform 0.3s ease;
}
.preamble-cases-section .summary-item:hover {
  transform: scale(1.05);
}
.preamble-cases-section .summary-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.preamble-cases-section .summary-item p {
  margin: 0;
  line-height: 1.6;
}

@keyframes preamble-fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes preamble-fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes preamble-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .preamble-cases-section .cases-title { font-size: 2rem; }
  .preamble-cases-section .cases-grid { grid-template-columns: 1fr; }
  .preamble-cases-section .case-card { padding: 20px; }
  .preamble-cases-section .summary-grid { grid-template-columns: 1fr; }
}


/* STEP 5 CSS - FAQ SECTION */
.faq-section {
  background: linear-gradient(180deg, #ffffff 0%, #fff8e1 100%);
  padding: 80px 20px;
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
}

.faq-container {
  max-width: 900px;
  margin: 40px auto 0;
}

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-color: #FFCC80;
}

.faq-item.active {
  border-color: #FF9933;
  box-shadow: 0 8px 30px rgba(255,153,51,0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 25px;
  background: white;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #FFF8E1;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FF9933, #FF6F00);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255,153,51,0.3);
}

.faq-text {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a237e;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

.faq-arrow {
  font-size: 1.2rem;
  color: #FF9933;
  transition: transform 0.3s ease;
  font-weight: 700;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: linear-gradient(135deg, #FFF8E1 0%, #ffffff 100%);
}

.faq-answer p {
  padding: 0 25px 25px 80px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
}

.faq-answer strong {
  color: #E65100;
  font-weight: 700;
  background: linear-gradient(120deg, #FFE0B2 0%, #FFCC80 100%);
  padding: 2px 6px;
  border-radius: 4px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .faq-question {
    padding: 18px 20px;
    gap: 12px;
  }
  
  .faq-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .faq-text {
    font-size: 1.05rem;
  }
  
  .faq-answer p {
    padding: 0 20px 20px 67px;
    font-size: 1rem;
  }
  
  .faq-arrow {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .faq-text {
    font-size: 0.98rem;
  }
  .faq-answer p {
    font-size: 0.95rem;
    padding: 0 15px 18px 62px;
  }
}


/* STEP 6 CSS - FOOTER */
.preamble-footer {
  background: linear-gradient(180deg, #1a237e 0%, #0d47a1 100%);
  color: white;
  padding: 60px 20px 30px;
  margin-top: 0;
}

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

.footer-middle {
  margin-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.footer-column {
  padding: 0 10px;
}

.footer-heading {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  color: #FFCC80;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  padding: 10px 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.footer-links li:last-child {
  border-bottom: none;
}

.footer-links li:hover {
  color: #FFCC80;
  padding-left: 10px;
}

.footer-links li strong {
  color: #FFCC80;
  font-weight: 700;
}

.footer-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  margin: 40px 0;
}

.footer-top {
  text-align: center;
  margin-bottom: 40px;
}

.footer-download {
  background: rgba(255,255,255,0.1);
  padding: 40px 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.2);
}

.download-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.download-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  color: white;
}

.download-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 25px 0;
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

.btn-print {
  background: linear-gradient(135deg, #FF9933, #FF6F00);
  color: white;
}

.download-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255,153,51,0.5);
}

.btn-icon {
  font-size: 1.5rem;
}

.download-note {
  margin: 20px 0 0 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  font-style: italic;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
}

.footer-tricolor {
  height: 4px;
  background: linear-gradient(90deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
  border-radius: 2px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.footer-copyright {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  margin: 15px 0;
  font-weight: 600;
}

.footer-copyright strong {
  color: #FFCC80;
  font-weight: 800;
}

.footer-quote {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin: 15px 0 0 0;
  font-style: italic;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* PRINT & MOBILE - Same as before */
@media print {
  .preamble-footer,
  .language-toggle,
  .section-badge,
  button,
  .download-note {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .preamble-section,
  .keywords-section,
  .timeline-section,
  .faq-section {
    page-break-inside: avoid;
    background: white !important;
  }
}

@media (max-width: 768px) {
  .preamble-footer {
    padding: 50px 20px 25px;
  }
  .download-title {
    font-size: 1.6rem;
  }
  .download-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .download-btn {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-heading {
    font-size: 1.2rem;
  }
  .footer-links li {
    font-size: 0.95rem;
  }
  .footer-quote {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .download-title {
    font-size: 1.4rem;
  }
  .download-icon {
    font-size: 3rem;
  }
  .footer-download {
    padding: 30px 20px;
  }
}

/* BACK BUTTON - NOT FIXED, SCROLLS WITH PAGE */
.back-button-container {
  position: relative;
  top: auto;
  left: auto;
  margin: 20px 0 0 20px;
  z-index: 10;
  animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #FF9933 0%, #FF6F00 50%, #E65100 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 8px 25px rgba(255,153,51,0.4), 0 0 rgba(255,153,51,0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid white;
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  position: relative;
  overflow: hidden;
}

/* Shine Effect */
.back-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.back-btn:hover::before {
  left: 100%;
}

.back-btn:hover {
  transform: translateX(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255,153,51,0.6), 0 0 20px rgba(255,153,51,0.4);
  background: linear-gradient(135deg, #FF6F00 0%, #FF9933 50%, #FFB74D 100%);
}

.back-btn:active {
  transform: translateX(-3px) scale(0.98);
  box-shadow: 0 5px 15px rgba(255,153,51,0.5);
}

.back-icon {
  font-size: 1.5rem;
  font-weight: 900;
  transition: transform 0.3s ease;
  display: inline-block;
}

.back-btn:hover .back-icon {
  transform: translateX(-5px);
  animation: bounceLeft 0.6s ease infinite;
}

@keyframes bounceLeft {
  0%, 100% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(-10px);
  }
}

.back-text {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

.back-text-hindi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.95rem;
  opacity: 0.9;
  padding-left: 5px;
  border-left: 2px solid rgba(255,255,255,0.5);
}

/* Pulse Animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(255,153,51,0.4), 0 0 0 0 rgba(255,153,51,0.7);
  }
  50% {
    box-shadow: 0 8px 25px rgba(255,153,51,0.4), 0 0 0 10px rgba(255,153,51,0);
  }
}

.back-btn {
  animation: pulseGlow 2s infinite;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .back-button-container {
    margin: 15px 0 0 15px;
  }
  
  .back-btn {
    padding: 12px 22px;
    font-size: 0.95rem;
    gap: 8px;
  }
  
  .back-icon {
    font-size: 1.3rem;
  }
  
  .back-text-hindi {
    display: none;
  }
}

@media (max-width: 480px) {
  .back-button-container {
    margin: 10px 0 0 10px;
  }
  
  .back-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  
  .back-icon {
    font-size: 1.2rem;
  }
}

/* PRINT - Hide in PDF */
@media print {
  .back-button-container {
    display: none !important;
  }
}
