/* 
   Kali Mandir Custom Styling (Hindi Version)
   Aesthetics: Sacred, Premium, and Modern
*/

:root {
    --primary-crimson: #8B0000;
    --primary-saffron: #FF9933;
    --primary-gold: #FFD700;
    --primary-dark: #121212;
    --text-muted: #BDBDBD;
    --white: #FFFFFF;
    --accent-red: #D32F2F;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, section, .hero-section {
    flex-shrink: 0;
}

.footer {
    margin-top: auto !important;
    background-color: var(--primary-dark);
}
h1, h2, h3, h4, h5, h6, .logo-title, .footer-title {
    font-family: 'Rozha One', serif;
    font-weight: 400;
    color: var(--primary-crimson);
}

/* Increase font size slightly for Hindi readability */
h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }

/* Top Bar */
.subpage-header {
    background: linear-gradient(rgba(139, 0, 0, 0.8), rgba(139, 0, 0, 0.8)), url('../images/003.jpeg') center/cover no-repeat;
    padding-top: 80px;
    padding-bottom: 80px;
    color: var(--white);
    position: relative;
}
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 0.9rem;
    border-bottom: 2px solid var(--primary-gold);
}

.top-bar a {
    color: var(--white);
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary-gold);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold) !important;
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--primary-crimson) !important;
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    background-color: rgba(139, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    border-bottom: 3px solid var(--primary-gold);
}

.logo-title {
    color: var(--primary-gold) !important;
    font-size: 1.8rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

.logo-subtitle {
    color: var(--white);
    font-size: 1.1rem; /* Increased on desktop */
    letter-spacing: 1.5px;
    font-weight: 500;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--primary-gold) !important;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(45deg, var(--primary-gold), #FFC107);
    color: var(--primary-crimson);
    border: none;
    border-radius: 5px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s;
    padding: 12px 30px;
}

.btn-premium:hover {
    background: linear-gradient(45deg, #FFC107, var(--primary-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-premium-small {
    background-color: var(--primary-gold);
    color: var(--primary-crimson);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 96px 0;
    color: var(--white);
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../images/001.jpeg') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 25px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    font-size: 4rem;
}

.hero-content p {
    font-size: 1.8rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 40px;
    font-weight: 500;
}

/* Section Styling */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 20px;
}

.section-title h2::after {
    content: '\f662'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-crimson);
    font-size: 1.8rem;
}

/* Cards */
.card-premium {
    background: var(--white);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    margin-bottom: 30px;
}

.card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 0, 0, 0.15);
}

.card-premium .card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    position: relative;
    border-top: 5px solid var(--primary-crimson);
    padding: 40px 0;
}

.footer-title {
    color: var(--primary-gold);
    font-size: 1.6rem;
}

.footer-links li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
    display: block;
    margin-bottom: 12px;
}

.footer-links li a:hover {
    color: var(--primary-gold);
    padding-left: 8px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-crimson);
    color: var(--primary-gold);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-gold);
}

.footer-social-links a:hover {
    background: var(--primary-gold);
    color: var(--primary-crimson);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Custom spacing */
.py-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.bg-cream {
    background-color: #FFF9F0;
}

.text-gold { color: var(--primary-gold) !important; }

/* Responsive adjustments and new sections */
@media (max-width: 991px) {
    .about-poster { min-height: 300px !important; }
    .about-img-wrapper .experience-badge { right: 0; bottom: -20px; width: 100px; height: 100px; border-width: 5px; }
    .about-img-wrapper .experience-badge .h1 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-content p { font-size: 1.1rem; }
    .py-section { padding-top: 60px; padding-bottom: 60px; }
}

@media (max-width: 576px) {
    .navbar .container {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .navbar-brand {
        max-width: 75% !important;
        margin-right: 0 !important;
    }
    .logo-title {
        font-size: 1rem;
        white-space: normal;
        margin-bottom: 0px;
    }
    .logo-subtitle {
        font-size: 0.65rem;
        display: block;
    }
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    .navbar-brand img {
        width: 35px !important;
        height: 35px !important;
    }
    .hero-content h1 {
        font-size: 1.8rem;
        word-break: keep-all;
    }
    .hero-content .badge {
        font-size: 0.7rem;
    }
    .hero-section {
        padding: 60px 0;
        min-height: 70vh;
    }
}

.experience-badge {
    transition: transform 0.3s ease;
}
.experience-badge:hover {
    transform: scale(1.1) rotate(5deg);
}

.navratri-item {
    padding: 20px;
}

.miracle-card-simple {
    transition: all 0.3s ease;
}
.miracle-card-simple:hover {
    background-color: #fff9f0;
}

.event-date h3 {
    font-size: 1.5rem;
    font-weight: 700;
}
