/* Durga Puja Theme - October 2025 */
/* Color Palette: Marigold (#FFB300), Deep Red (#8B0000), Temple Gold (#D4AF37), Clay (#B55239), Off White (#FFF7E6) */

/* Festive Banner */
.durga-puja-banner {
    background: linear-gradient(90deg, #8B0000 0%, #D4AF37 50%, #FFB300 100%);
    color: #FFF7E6;
    text-align: center;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    animation: deityGlow 4s ease-in-out infinite;
    letter-spacing: 0.5px;
}

.durga-puja-banner .deity-icon {
    font-size: 22px;
    margin: 0 10px;
    animation: swing 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes deityGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

@keyframes swing {
    0%,100% { transform: rotate(0deg); }
    50% { transform: rotate(8deg); }
}

/* Navigation Theme */
.nav-section-title.durga-theme {
    background: linear-gradient(45deg, #8B0000, #D4AF37, #FFB300);
    background-size: 300% 300%;
    animation: gradientShiftPuja 6s ease infinite;
    color: #FFF7E6;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

@keyframes gradientShiftPuja {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section Festive Layer */
.hero-section.durga-theme {
    position: relative;
    overflow: hidden;
}
.hero-section.durga-theme::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255,179,0,0.25), transparent 60%),
                linear-gradient(135deg, rgba(139,0,0,0.5), rgba(255,179,0,0.15), rgba(212,175,55,0.35));
    pointer-events: none;
    z-index: 2;
}

/* Festive Lanterns / Diyas floating */
.festive-floating {
    position: fixed;
    font-size: 26px;
    z-index: 999;
    animation: floatPuja 7s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.85;
}
.festive-floating:nth-child(1) { top: 18%; left: 5%; animation-delay: 0s; }
.festive-floating:nth-child(2) { top: 55%; right: 6%; animation-delay: 2s; }
.festive-floating:nth-child(3) { top: 38%; left: 80%; animation-delay: 4s; }

@keyframes floatPuja {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.07); }
}

.hero-title.durga-theme {
    color: #FFB300;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.hero-subtitle.durga-theme {
    color: #FFF7E6;
    font-weight: 600;
}

/* Special Festive Message */
.puja-message {
    background: linear-gradient(135deg, #8B0000 0%, #D4AF37 50%, #FFB300 100%);
    color: #FFF7E6;
    padding: 22px 25px;
    border-radius: 18px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}
.puja-message:before, .puja-message:after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 70%);
    top: -40px;
    left: -30px;
    border-radius: 50%;
    animation: auraPulse 5s linear infinite;
}
.puja-message:after { top: auto; bottom: -45px; left: auto; right: -35px; animation-delay: 2.5s; }
@keyframes auraPulse { 0%,100% { transform: scale(1); opacity: .7;} 50% { transform: scale(1.25); opacity:1;}}
.puja-message h3 { margin:0 0 10px; font-weight:700; font-size: 22px; letter-spacing: .5px; }
.puja-message p { margin:0; font-weight:500; font-size: 15px; }

/* Themed Buttons */
.btn-puja {
    background: linear-gradient(45deg, #FFB300, #D4AF37);
    color: #4A1A00;
    border: 2px solid #8B0000;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.35s ease;
    box-shadow: 0 6px 18px rgba(139,0,0,0.4);
    position: relative;
    overflow: hidden;
}
.btn-puja:before { content:''; position:absolute; inset:0; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent); transform: translateX(-100%); transition: transform .6s ease; }
.btn-puja:hover:before { transform: translateX(100%); }
.btn-puja:hover { transform: translateY(-4px); box-shadow:0 10px 26px rgba(139,0,0,0.55); }
.btn-puja:active { transform: scale(.95); }

/* Course Cards Accent */
.course-card.durga-theme {
    border: 3px solid transparent;
    background: linear-gradient(#fff,#fff) padding-box, linear-gradient(45deg,#8B0000,#D4AF37,#FFB300) border-box;
    position: relative;
}
.course-card.durga-theme::before {
    content: '\1F9E8'; /* diya lamp emoji */
    position: absolute;
    top: 10px; right: 15px;
    font-size: 20px;
    animation: pulseLamp 2.2s infinite;
}
@keyframes pulseLamp {0%,100%{ transform: scale(1);}50%{ transform: scale(1.15);} }

/* Decorative Divider */
.puja-line {
    height: 4px;
    background: linear-gradient(90deg,#8B0000,#D4AF37,#FFB300,#D4AF37,#8B0000);
    margin: 18px 0;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}
.puja-line:after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,rgba(255,255,255,.4),transparent,rgba(255,255,255,.4)); animation: shimmer 4s linear infinite; }
@keyframes shimmer {0%{transform:translateX(-100%);}100%{transform:translateX(100%);} }

/* Contact & Footer */
.contact-section.durga-theme { background: linear-gradient(135deg,#8B0000 0%, #300000 60%, #4A1A00 100%); color:#FFF7E6; }
.site-footer.durga-theme { border-top:5px solid #D4AF37; background:#2B0000; color:#FFF7E6; }

/* Utility hide Independence Day elements when switching theme */
.independence-day-banner, .independence-decoration, .floating-flag, .independence-message, .btn-independence, .course-card.independence-theme, .hero-section.independence-theme::before { display:none !important; }

/* Responsive */
@media (max-width: 768px) {
    .puja-message { padding:18px 20px; }
    .puja-message h3 { font-size: 20px; }
    .puja-message p { font-size: 14px; }
}

/* Enhanced Floating Countdown Circle */
.puja-countdown-circle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 180px;
    height: 180px;
    background: conic-gradient(from 0deg at 50% 50%, #8B0000 0%, #D4AF37 25%, #FFB300 50%, #D4AF37 75%, #8B0000 100%);
    border-radius: 50%;
    color: #FFF7E6;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    box-shadow: 
        0 0 40px rgba(255,179,0,0.6),
        0 15px 45px rgba(139,0,0,0.4),
        inset 0 0 30px rgba(255,255,255,0.1);
    z-index: 9999 !important;
    overflow: visible;
    backdrop-filter: blur(6px);
    border: 4px solid rgba(255,255,255,0.3);
    animation: floatPulse 6s ease-in-out infinite, glowRotate 20s linear infinite, shimmerRing 8s ease-in-out infinite;
    position: fixed !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.puja-countdown-circle::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: conic-gradient(from 0deg, transparent, #FFB300, transparent, #D4AF37, transparent);
    border-radius: 50%;
    animation: spinRing 12s linear infinite;
    z-index: -1;
    opacity: 0.7;
}
.puja-countdown-circle::after {
    content: '🕉️';
    position: absolute;
    top: -15px;
    right: 15px;
    font-size: 28px;
    animation: blessing 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(139,0,0,0.6));
}
.puja-countdown-circle.hidden { opacity:0; transform: scale(.7); transition: all .55s ease; }
.puja-countdown-circle .count-inner { display:flex; flex-wrap:wrap; gap:8px; width:140px; justify-content:center; margin-bottom: 8px; }
.puja-countdown-circle .time-part { flex: 0 0 calc(50% - 8px); text-align:center; background: rgba(255,255,255,0.15); border-radius: 12px; padding: 6px 2px; backdrop-filter: blur(3px); border: 1px solid rgba(255,255,255,0.2); }
.puja-countdown-circle .time-part .num { display:block; font-size:22px; font-weight:800; text-shadow:0 3px 6px rgba(0,0,0,0.5), 0 0 20px rgba(255,179,0,0.3); background: linear-gradient(135deg, #FFB300, #FFF7E6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.puja-countdown-circle .time-part .label { font-size:11px; letter-spacing: .8px; opacity:.95; font-weight: 600; text-transform: uppercase; }
.puja-countdown-circle .count-caption { font-size:15px; font-weight:700; letter-spacing:1px; text-shadow:0 2px 6px rgba(0,0,0,.5); background: linear-gradient(45deg, #FFB300, #FFF7E6, #D4AF37); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: textShine 3s ease-in-out infinite; }
.puja-countdown-circle.reached { background: conic-gradient(from 0deg, #8B0000 0%, #FFB300 50%, #D4AF37 100%); animation: celebratePulse 2s ease-in-out infinite, partyGlow 1.5s ease-in-out infinite; }
.puja-countdown-circle.reached .count-caption { font-size: 16px; animation: celebration 2s ease-in-out infinite; }.puja-countdown-circle .close-countdown { position:absolute; top:4px; right:6px; background:rgba(0,0,0,0.35); color:#FFF7E6; border:none; cursor:pointer; border-radius:50%; width:24px; height:24px; font-size:16px; line-height:24px; padding:0; display:flex; align-items:center; justify-content:center; transition: background .3s; }
.puja-countdown-circle .close-countdown:hover { background: rgba(0,0,0,0.55); }

@keyframes floatPulse { 0%,100%{ transform: translateY(0) scale(1);} 50%{ transform: translateY(-12px) scale(1.02);} }
@keyframes glowRotate { 0%{ filter:hue-rotate(0deg) brightness(1);} 50%{ filter:hue-rotate(180deg) brightness(1.1);} 100%{ filter:hue-rotate(360deg) brightness(1);} }
@keyframes celebratePulse { 0%,100% { transform: scale(1) rotate(0deg);} 25% { transform: scale(1.08) rotate(2deg);} 75% { transform: scale(1.08) rotate(-2deg);} }
@keyframes shimmerRing { 0%,100% { box-shadow: 0 0 40px rgba(255,179,0,0.6), 0 15px 45px rgba(139,0,0,0.4), inset 0 0 30px rgba(255,255,255,0.1); } 50% { box-shadow: 0 0 60px rgba(255,179,0,0.9), 0 15px 45px rgba(139,0,0,0.6), inset 0 0 40px rgba(255,255,255,0.2); } }
@keyframes spinRing { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes blessing { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.15); } }
@keyframes textShine { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.3); } }
@keyframes celebration { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes partyGlow { 0%,100% { box-shadow: 0 0 40px rgba(255,179,0,0.8), 0 15px 45px rgba(139,0,0,0.6); } 50% { box-shadow: 0 0 80px rgba(255,179,0,1), 0 15px 60px rgba(139,0,0,0.8); } }

@media (max-width:600px){
  .puja-countdown-circle { width:155px; height:155px; bottom:15px; right:15px; }
  .puja-countdown-circle .count-inner { width:120px; }
  .puja-countdown-circle .time-part .num { font-size:20px; }
  .puja-countdown-circle .count-caption { font-size:14px; }
  .puja-countdown-circle::after { font-size:24px; top:-12px; right:12px; }
}