/* 15 August decorations: isolated so the existing page layout stays unchanged. */
.independence-banner {
  position: relative;
  z-index: 1021;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  color: #12356b;
  text-align: center;
  letter-spacing: .3px;
  background: linear-gradient(90deg, #ff9933 0 31%, #fff 42% 58%, #138808 69% 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.independence-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.7) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: ind-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

.independence-date {
  padding: 2px 9px;
  border: 1px solid rgba(18, 53, 107, .25);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 800;
}

.ind-flag {
  position: relative;
  width: 34px;
  height: 23px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: linear-gradient(#ff9933 0 33.33%, #fff 33.33% 66.66%, #138808 66.66%);
  box-shadow: 0 1px 3px rgba(0,0,0,.24);
  transform-origin: left center;
  animation: ind-wave 1.7s ease-in-out infinite alternate;
}

.ind-flag i {
  position: absolute;
  width: 7px;
  height: 7px;
  left: 14px;
  top: 8px;
  border: 1.5px solid #1a4c9a;
  border-radius: 50%;
}

.ind-flag--reverse { transform-origin: right center; animation-delay: -.8s; }

.independence-sky { position: fixed; inset: 0; z-index: 1020; pointer-events: none; overflow: hidden; }
.independence-sky--footer { position: absolute; z-index: 0; }

.ind-balloon {
  position: absolute;
  bottom: -100px;
  width: 48px;
  height: 62px;
  border-radius: 52% 52% 48% 48%;
  opacity: .85;
  box-shadow: inset -5px -4px 8px rgba(0,0,0,.12);
  animation: ind-rise-balloon 9s ease-in infinite;
}

.ind-balloon::before {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -9px;
  border: 6px solid transparent;
  border-bottom: 0;
  border-top-color: currentColor;
}

.ind-balloon::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 68px;
  width: 1px;
  height: 70px;
  background: rgba(70,70,70,.4);
}

.ind-balloon--saffron { left: 4%; color: #ff8c1a; background: #ff9933; animation-delay: .2s; }
.ind-balloon--white { right: 10%; color: #ddd; background: #fff; animation-delay: 2.6s; }
.ind-balloon--green { right: 3%; color: #138808; background: #138808; animation-delay: 5s; }
.ind-balloon--extra-1 { left: 25%; right: auto; animation-delay: 6.8s; animation-duration: 11s; }
.ind-balloon--extra-2 { left: 55%; right: auto; animation-delay: 4.2s; animation-duration: 10s; }
.ind-balloon--extra-3 { left: 76%; right: auto; animation-delay: 8.2s; animation-duration: 12s; }

/* Diwali-style glowing sparks, restricted to the Indian tricolour palette. */
.ind-spark {
  position: absolute;
  bottom: -24px;
  width: 5px;
  height: 14px;
  border-radius: 50%;
  opacity: 0;
  background: currentColor;
  box-shadow: 0 0 6px currentColor, 0 0 13px currentColor;
  animation: ind-spark-rise 5.8s linear infinite;
}

.ind-spark::before,
.ind-spark::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 8px -5px 0 currentColor, -7px -9px 0 currentColor, 5px 8px 0 currentColor;
}
.ind-spark::after { transform: rotate(55deg); }

.ind-spark--1 { left: 7%; color: #ff9933; animation-delay: .1s; }
.ind-spark--2 { left: 15%; color: #fff; animation-delay: 2.1s; animation-duration: 7s; }
.ind-spark--3 { left: 23%; color: #138808; animation-delay: 4.3s; }
.ind-spark--4 { left: 32%; color: #ff9933; animation-delay: 1.3s; animation-duration: 6.8s; }
.ind-spark--5 { left: 40%; color: #fff; animation-delay: 3.6s; }
.ind-spark--6 { left: 49%; color: #138808; animation-delay: .8s; animation-duration: 7.5s; }
.ind-spark--7 { left: 58%; color: #ff9933; animation-delay: 5s; }
.ind-spark--8 { left: 66%; color: #fff; animation-delay: 2.8s; animation-duration: 6.5s; }
.ind-spark--9 { left: 74%; color: #138808; animation-delay: 1.7s; }
.ind-spark--10 { left: 82%; color: #ff9933; animation-delay: 4s; animation-duration: 7.2s; }
.ind-spark--11 { left: 90%; color: #fff; animation-delay: .4s; }
.ind-spark--12 { left: 96%; color: #138808; animation-delay: 3.2s; animation-duration: 6.7s; }

.independence-footer { position: relative; overflow: hidden; }
.independence-footer > .container { position: relative; z-index: 1; }

.independence-bunting {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  display: flex;
  justify-content: space-around;
  border-top: 2px solid rgba(255,255,255,.75);
  pointer-events: none;
}

.independence-bunting span {
  width: 30px;
  height: 25px;
  background: linear-gradient(90deg, #ff9933 0 33%, #fff 33% 66%, #138808 66%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: ind-bunting 2.2s ease-in-out infinite alternate;
}
.independence-bunting span:nth-child(even) { animation-delay: -1.1s; }

.independence-sky--footer .ind-balloon--saffron { top: auto; bottom: 25%; left: 2%; }
.independence-sky--footer .ind-balloon--white { top: 25%; right: 4%; }
.independence-sky--footer .ind-balloon--green { top: auto; bottom: 12%; right: 1.5%; }

@keyframes ind-wave { to { transform: perspective(50px) rotateY(12deg) skewY(2deg); } }
@keyframes ind-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes ind-rise-balloon {
  0% { transform: translate3d(0, 0, 0) rotate(-4deg); opacity: 0; }
  8% { opacity: .88; }
  50% { transform: translate3d(18px, -55vh, 0) rotate(4deg); }
  92% { opacity: .78; }
  100% { transform: translate3d(-12px, -115vh, 0) rotate(-3deg); opacity: 0; }
}
@keyframes ind-spark-rise {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(.65); opacity: 0; }
  10% { opacity: .95; }
  35% { transform: translate3d(18px, -36vh, 0) rotate(100deg) scale(1); }
  68% { transform: translate3d(-15px, -76vh, 0) rotate(210deg) scale(.8); opacity: .85; }
  100% { transform: translate3d(10px, -115vh, 0) rotate(330deg) scale(.35); opacity: 0; }
}
@keyframes ind-bunting { to { transform: rotateY(18deg) rotateZ(2deg); } }

@media (max-width: 767px) {
  .independence-banner { min-height: 32px; gap: 7px; font-size: 12px; }
  .independence-date { font-size: 10px; padding: 1px 6px; }
  .ind-flag { width: 27px; height: 18px; }
  .ind-flag i { width: 6px; height: 6px; left: 11px; top: 6px; }
  .ind-balloon { transform: scale(.8); opacity: .65; }
  .ind-balloon--green { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .independence-banner::after,
  .ind-flag,
  .ind-balloon,
  .ind-spark,
  .independence-bunting span { animation: none !important; }
}
