body.diwali-theme {
    background-color: #020031; /* Deep Blue for a night sky effect */
    color: #fdf5e6; /* Warmer off-white */
    overflow-x: hidden;
    height: auto;
    width: auto;
}

.diwali-theme header {
    background: linear-gradient(to bottom, #020031, #4a004a); /* Blue to Purple gradient */
    border-bottom: 3px solid #ffd700; /* Brighter Gold */
    box-shadow: 0 0 20px #ffd700; /* Brighter Gold */
    position: relative;
}

/* Diwali Lights */
.diwali-lights {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 0; /* Added to be behind the top-bar */
}

.light-rope {
    display: inline-block;
}

.light {
    position: relative;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    margin: 0 20px;
    animation: blink 1.5s infinite;
}

.light:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 4px;
    width: 4px;
    height: 6px;
    background-color: #333;
}

.light.red { background-color: #ff4141; animation-delay: 0.2s; }
.light.green { background-color: #50ff50; animation-delay: 0.4s; }
.light.blue { background-color: #4d94ff; animation-delay: 0.6s; }
.light.yellow { background-color: #ffff50; animation-delay: 0.8s; }
.light.purple { background-color: #e550ff; animation-delay: 1s; }

@keyframes blink {
    0%, 100% { box-shadow: 0 0 12px 3px currentColor, 0 0 25px 8px currentColor; }
    50% { box-shadow: 0 0 6px 2px currentColor, 0 0 12px 5px currentColor; }
}

.diwali-theme .top-bar {
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffd700;
    position: relative; /* Added for z-index to work */
    z-index: 1; /* Added to be in front of the lights */
}
.diwali-theme .top-bar a{
    color: #fff;
}
.diwali-theme .top-bar a:hover{
    color: #ffd700;
}

.diwali-theme nav {
    background-color: transparent; /* Make nav transparent to show header gradient */
    box-shadow: none;
    border-bottom: none;
}

.diwali-theme .school-name {
    color: #ffc107; /* Lighter, more vibrant gold */
    text-shadow: 0 0 8px #ffd700, 0 0 15px #ffd700, 0 0 25px #ff8c00;
    font-weight: bold;
    font-size: 1.9em;
    animation: glow 2.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 6px #ffd700, 0 0 12px #ffd700, 0 0 20px #ff8c00;
    }
    to {
        text-shadow: 0 0 12px #ffd700, 0 0 20px #ffd700, 0 0 30px #ff8c00;
    }
}

.diwali-theme nav ul li a {
    color: #ffd700;
    transition: all 0.4s ease; /* Smoother transition */
    font-weight: bold;
    padding: 10px 0; /* Adjust padding */
    margin: 0 15px; /* Add margin */
    border-bottom: 2px solid transparent; /* Placeholder for smooth transition */
    background-color: transparent;
}

.diwali-theme nav ul li a.active,
.diwali-theme nav ul li a:hover {
    color: #ffc107; /* Lighter gold for hover */
    background-color: transparent; /* Remove background color */
    border-bottom-color: transparent; /* Remove border */
    text-shadow: 0 0 8px #ffd700, 0 0 15px #ffd700; /* A soft glow */
    transform: scale(1.05); /* Gently scale up */
}

.diwali-theme .dropdown-content {
    background-color: #0a0028; /* Darker blue */
    border: 1px solid #ffd700;
}

.diwali-theme .dropdown-content a {
    color: #bbb8b8d1;
}

.diwali-theme .dropdown-content a:hover {
    background-color: transparent;
    color: #ffd700;
}

.diwali-theme .student-app {
    background-color: #ffd700;
    color: #1a1a1a;
    font-weight: bold;
    border: 1px solid #1a1a1a;
}
.diwali-theme .student-app:hover {
    background-color: #1a1a1a;
    color: #ffd700;
    border: 1px solid #ffd700;
}

.diwali-theme .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('https://i.ibb.co/KzC1Q0Y/diwali-bg.jpg') no-repeat center center/cover;
}

.diwali-theme .hero h1 {
    color: #ffd700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.diwali-theme .about-us,
.diwali-theme .our-school,
.diwali-theme .special-achievements {
    background-color: rgba(10, 0, 0, 0.5);
    border: 1px solid #444;
    border-radius: 10px;
}

.diwali-theme .section-title h2 {
    color: #ffd700;
    border-bottom: 3px solid #ffd700;
}
.diwali-theme .section-title h2::after{
    background-color: #ffd700;
}

.diwali-theme .about-text h3, .diwali-theme .notice-board h3 {
    color: #ffc107;
    text-shadow: 0 0 5px #ffd700;
    border-bottom: 1px solid #ffd700;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.diwali-theme .notice-board {
    background-color: rgba(2, 0, 49, 0.7); /* Transparent deep blue */
    border: 1px solid #ffd700;
    border-radius: 10px; /* Rounded corners */
    padding: 20px; /* Add padding */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); /* Glowing effect */
}

.diwali-theme .school-link-item .link-overlay {
    background-color: rgba(255, 215, 0, 0.9);
    color: #1a1a1a;
    font-weight: bold;
}

.diwali-theme footer {
    background: linear-gradient(to top, #020031, #4a004a);
    border-top: 3px solid #ffd700;
    box-shadow: 0 0 20px #ffd700;
}

.diwali-theme .footer-content {
    border-bottom: 1px solid #555;
}

.diwali-theme footer h3 {
    color: #ffc107;
    border-bottom: 2px solid #ffd700;
}

.diwali-theme .quick-links ul li a:hover,
.diwali-theme .contact-us a:hover {
    color: #ffd700;
}

.diwali-theme .copyright a {
    color: #ffd700;
}

/* Diwali Popup */
.diwali-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.diwali-popup {
    background: radial-gradient(circle, #333, #1a1a1a);
    padding: 5vmin;
    border-radius: 15px;
    text-align: center;
    position: relative;
    border: 3px solid #ffd700;
    box-shadow: 0 0 30px #ffd700, 0 0 50px #ff8c00, inset 0 0 20px #ffd700;
    width: 80vw;
    max-width: 600px;
    margin: auto;
}

.diwali-popup h2 {
    color: #ffd700;
    font-size: 8vmin;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ff8c00;
    animation: glow 1.5s ease-in-out infinite alternate;
}

.diwali-popup p {
    color: #fdf5e6;
    font-size: 4vmin;
}

.diwali-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #fdf5e6;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.diwali-popup-close:hover {
    color: #ffd700;
    transform: scale(1.2);
}

.diwali-emojis {
    font-size: 2.5rem;
    margin-top: 25px;
}

/* Emoji Rain */
.emoji-rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.emoji {
    position: absolute;
    font-size: 2.5rem;
    animation: fall linear infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

@keyframes fall {
    to {
        transform: translateY(105vh) rotate(360deg);
        opacity: 0;
    }
}

/* Rocket Animation */
.rocket {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    text-shadow: 0 0 10px #ffd700;
    animation: launch 2s ease-in forwards;
    z-index: 10001;
}

@keyframes launch {
    0% {
        bottom: -150px;
        opacity: 0.5;
    }
    100% {
        bottom: 85vh;
        opacity: 1;
    }
}

/* CSS Explosion */
.explosion {
    position: fixed;
    top: 15vh;
    left: 50%;
    width: 10px;
    height: 10px;
    opacity: 0;
    z-index: 10002;
}

.explosion::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    margin-left: -125px;
    margin-top: -125px;
    border-radius: 50%;
    animation: blast 1.5s ease-out forwards;
}

@keyframes blast {
    0% {
        transform: scale(0);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
        box-shadow: 0 0 0 200px rgba(255, 215, 0, 0);
    }
}

.slide::after {
  content: "Happy Dewali";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffd700; /* Golden color */
  font-size: 48px;
  font-weight: bold;
  text-shadow: 0 0 10px #ffd700, 0 0 20px #ffc107, 0 0 30px #ff8c00; /* Glowing effect */
  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
}