/* ==========================================
   Gram Panchayat Website - Common Styles
   ========================================== */

/* CSS Variables */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: var(--transition);
	color: var(--primary-color);
}

/* ==========================================
   Top Bar
   ========================================== */
.top-bar {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: var(--bg-white);
    margin: 0 8px;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

/* ==========================================
   Navbar
   ========================================== */
	* {
                font-family: "Noto Sans Devanagari", sans-serif;
            }
            
            /* Reset */
            body {
                margin: 0;
                padding: 0;
            }
            
            /* Skip to Content */
            .skip-to-content {
                position: absolute;
                top: -40px;
                left: 0;
                background: var(--primary-color);
                color: white;
                padding: 8px 16px;
                text-decoration: none;
                z-index: 10000;
            }
            
            .skip-to-content:focus {
                top: 0;
            }
            
            /* Government Top Bar */
            .govt-top-bar {
                background: #f8f9fa;
                border-bottom: 1px solid #dee2e6;
                padding: 8px 0;
                font-size: 0.875rem;
            }
            
            .govt-top-bar .contact-section {
                display: flex;
                align-items: center;
                gap: 15px;
                flex-wrap: wrap;
            }
            
            .govt-top-bar .contact-section i {
                margin-right: 5px;
                color: var(--primary-color);
            }
            
            .govt-top-bar .accessibility-controls {
                display: flex;
                align-items: center;
                gap: 12px;
                flex-wrap: wrap;
                justify-content: flex-end;
            }
            
            .govt-top-bar .govt-links a {
                color: #495057;
                text-decoration: none;
                transition: color 0.2s;
                font-size: 0.85rem;
            }
            
            .govt-top-bar .govt-links a:hover {
                color: var(--primary-color);
            }
            
            .social-links-header {
                display: flex;
                gap: 10px;
            }
            
            .social-links-header a {
                color: var(--primary-color);
                font-size: 1rem;
                transition: transform 0.2s;
                display: inline-block;
            }
            
            .social-links-header a:hover {
                transform: translateY(-2px);
            }
            
            .font-size-btn {
                background: none;
                border: 1px solid #ced4da;
                padding: 2px 10px;
                cursor: pointer;
                border-radius: 3px;
                color: #495057;
                font-size: 0.875rem;
                transition: all 0.2s;
            }
            
            .font-size-btn:hover {
                background: var(--primary-color);
                color: white;
                border-color: var(--primary-color);
            }
            
            .lang-switch {
                background: white;
                border: 1px solid #ced4da;
                padding: 4px 10px;
                border-radius: 4px;
                color: #495057;
                cursor: pointer;
                font-size: 0.85rem;
                display: inline-flex;
                align-items: center;
                gap: 5px;
                transition: all 0.2s;
                white-space: nowrap;
            }
            
            .lang-switch:hover {
                border-color: var(--primary-color);
                color: var(--primary-color);
            }
            
            .header-icon-btn {
                background: white;
                border: 1px solid #ced4da;
                font-size: 1rem;
                color: #495057;
                cursor: pointer;
                transition: all 0.2s;
                padding: 5px 10px;
                border-radius: 4px;
            }
            
            .header-icon-btn:hover {
                color: var(--primary-color);
                border-color: var(--primary-color);
            }
            
            /* Header Main */
            .header-main {
                background: white;
                padding: 15px 0;
                border-bottom: 3px solid var(--primary-color);
            }
            
            .header-content {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 15px;
            }
            
            .header-logo-section {
                display: flex;
                align-items: center;
                gap: 15px;
                flex: 1;
            }
            
            .header-logo-section a {
                text-decoration: none;
            }
            
            .emblem-logo {
                width: 70px;
                height: auto;
                flex-shrink: 0;
            }
            
            .header-text {
                display: flex;
                flex-direction: column;
            }
            
            .header-ministry {
                font-size: 0.75rem;
                color: #666;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                margin-bottom: 2px;
            }
            
            .header-title {
                font-size: 1.5rem;
                font-weight: 700;
                color: #2c3e50;
                margin: 0;
                line-height: 1.2;
            }
            
            .header-title a {
                color: #2c3e50 !important;
                text-decoration: none;
            }
            
            .header-title-en {
                font-size: 1.1rem;
                color: #34495e;
                font-weight: 500;
            }
            
            .header-title-en a {
                font-size: 1.1rem;
                color: #34495e !important;
                font-weight: 500;
                text-decoration: none;
            }
            
            .header-right {
                display: flex;
                align-items: center;
                gap: 15px;
                flex-shrink: 0;
            }
            
            .national-emblem {
                text-align: center;
                padding: 5px;
            }
            
            .national-emblem img {
                max-width: 100%;
                height: auto;
                display: block;
            }
            
            .emblem-tagline {
                font-size: 0.75rem;
                color: #666;
                margin-top: 5px;
            }
            
            /* Navigation Bar */
            .nav-bar {
                background: var(--primary-color);
                box-shadow: 0 2px 4px rgba(0,0,0,0.1);
                position: sticky;
                top: 0;
                z-index: 1000;
            }
            
            .nav-bar .navbar {
                padding: 0;
            }
            
            .nav-bar .navbar-nav {
                width: 100%;
            }
            
            .nav-bar .nav-item {
                position: relative;
            }
            
            .nav-bar .nav-link {
                color: white !important;
                padding: 15px 18px;
                font-size: 0.95rem;
                font-weight: 500;
                transition: all 0.3s;
                border-bottom: 3px solid transparent;
            }
            
            .nav-bar .nav-link:hover,
            .nav-bar .nav-link.active {
                background: rgba(255,255,255,0.1);
                border-bottom-color: white;
            }
            
            .nav-bar .nav-link i {
                margin-right: 6px;
                font-size: 0.9rem;
            }
            
            .nav-bar .dropdown-menu {
				background:var(--primary-dark);
                margin-top: 0;
                border: none;
                border-radius: 0 0 4px 4px;
                box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            }
            
            .nav-bar .dropdown-item {
				color:var(--primary-color);
                padding: 10px 20px;
                transition: all 0.2s;
            }
            
            .nav-bar .dropdown-item:hover {
                background: var(--primary-color);
                color: white;
            }
            
            .navbar-toggler {
                border: 1px solid white;
                padding: 5px 10px;
            }
            
            .navbar.scrolled {
                padding: 10px 0;
            }
            
            /* Mobile Responsiveness */
            @media (max-width: 991px) {
                .govt-top-bar {
                    padding: 8px 0;
                    font-size: 0.75rem;
                }
                
                .govt-top-bar .contact-section {
                    font-size: 0.75rem;
                    gap: 8px;
                    justify-content: center;
                }
                
                .govt-top-bar .accessibility-controls {
                    justify-content: center;
                    gap: 8px;
                }
                
                .social-links-header a {
                    font-size: 0.9rem;
                }
                
                .header-main {
                    padding: 10px 0;
                }
                
                .header-content {
                    flex-direction: column;
                    text-align: center;
                }
                
                .header-logo-section {
                    flex-direction: column;
                    text-align: center;
                    gap: 10px;
                }
                
                .emblem-logo {
                    width: 60px;
                }
                
                .header-title {
                    font-size: 1.25rem;
                }
                
                .header-title-en {
                    font-size: 1rem;
                }
                
                .header-right {
                    flex-direction: row;
                    gap: 10px;
                    justify-content: center;
                    flex-wrap: wrap;
                }
                
                .national-emblem {
                    display: none !important;
                }
                
                .nav-bar .nav-link {
                    padding: 12px 15px;
                    border-bottom: 1px solid rgba(255,255,255,0.1);
                }
                
                .nav-bar .nav-link.active {
                    background: rgba(255,255,255,0.2);
                }
            }
            
            @media (max-width: 576px) {
                .govt-top-bar .contact-section {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 5px;
                    font-size: 0.7rem;
                }
                
                .govt-top-bar .accessibility-controls {
                    flex-wrap: wrap;
                    gap: 6px;
                }
                
                .govt-top-bar .govt-links {
                    display: none;
                }
                
                .social-links-header {
                    gap: 8px;
                }
                
                .social-links-header a {
                    font-size: 0.85rem;
                }
                
                .lang-switch {
                    font-size: 0.75rem;
                    padding: 3px 8px;
                }
                
                .header-icon-btn {
                    font-size: 0.9rem;
                    padding: 4px 8px;
                }
                
                .header-ministry {
                    font-size: 0.65rem;
                }
                
                .header-title {
                    font-size: 1.1rem;
                }
                
                .header-title-en,
                .header-title-en a {
                    font-size: 0.75rem;
                }
                
                .emblem-logo {
                    width: 50px;
                }
                
                .nav-bar .nav-link {
                    font-size: 0.9rem;
                    padding: 10px 12px;
                }
                
                .nav-bar .nav-link i {
                    font-size: 0.85rem;
                }
            }
            
            @media (max-width: 380px) {
                .header-title {
                    font-size: 1rem;
                }
                
                .header-title-en,
                .header-title-en a {
                    font-size: 0.7rem;
                }
                
                .emblem-logo {
                    width: 45px;
                }
                
                .govt-top-bar .contact-section {
                    font-size: 0.65rem;
                }
                
                .social-links-header a {
                    font-size: 0.8rem;
                }
            }

/* ==========================================
   Hero Section - Carousel Version
   ========================================== */
.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    height: 600px;
    position: relative;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
}

.hero-carousel .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-carousel .carousel-content {
    color: var(--bg-white);
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

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

.hero-carousel .carousel-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-carousel .carousel-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: var(--transition);
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ==========================================
   Hero Section - Video Version
   ========================================== */
.video-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.video-hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-hero .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.8) 0%, rgba(26, 54, 93, 0.8) 100%);
    display: flex;
    align-items: center;
    z-index: 1;
}

.video-hero .video-content {
    color: var(--bg-white);
    position: relative;
    z-index: 2;
}

.video-hero .video-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.video-hero .video-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1.2s ease;
}

.video-hero .video-control {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 2;
}

.video-hero .video-control button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--bg-white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.video-hero .video-control button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Hero Buttons */
.btn-hero {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Stats Badge */
.stats-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    display: inline-block;
}

.stats-badge i {
    color: var(--secondary-color);
}

/* ==========================================
   Cards - Base Styles
   ========================================== */
.card-base {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.card-base:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   Leadership Cards
   ========================================== */
.leadership-card:hover {
    transform: translateY(-10px);
}

.leadership-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-dark);
    margin: 0 auto 15px;
}

.leadership-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.leadership-card .designation {
    color: var(--primary-dark);
    font-size: 14px;
}

/* ==========================================
   Stats Section
   ========================================== */
.stats-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.stat-card {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.stat-card .icon {
    font-size: 48px;
    color: var(--primary-dark)
    margin-bottom: 15px;
}

.stat-card .icon i{color:var(--primary-dark);}

.stat-card h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--secondary-dark);
    margin: 0;
    font-size: 16px;
}

/* ==========================================
   Service Cards
   ========================================== */
.service-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), #3182ce);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--bg-white);
}

.service-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================
   Temple Cards
   ========================================== */
.temples-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.temple-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-bottom: 20px;
}

.temple-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.temple-card .temple-icon {
    text-align: center;
    font-size: 48px;
    color: var(--bg-white);
}

.temple-card .temple-info {
    padding: 20px;
    text-align: center;
}

.temple-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

/* ==========================================
   News Cards
   ========================================== */
.news-section {
    padding: 60px 0;
}

.news-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 20px;
}

.news-date {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.news-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* ==========================================
   Section Titles
   ========================================== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 10px auto 0;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--secondary-dark);
    margin: 0 auto;
}

/* ==========================================
   Buttons
   ========================================== */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-warning {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-warning:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 40px 0 20px;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer a {
    color: #cbd5e0;
    display: block;
    margin-bottom: 8px;
}

.footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer p {
    color: #cbd5e0;
    margin-bottom: 10px;
}

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

.footer-bottom {
    border-top: 1px solid #2d3748;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #a0aec0;
}

/* ==========================================
   Utilities
   ========================================== */
.py-60 {
    padding: 60px 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

/* ==========================================
   Page Specific Styles
   ========================================== */

/* About Page */
.about-section {
    padding: 60px 0;
}

.about-content {
    line-height: 1.8;
}

.about-image {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Maps Page */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.map-container img {
    width: 100%;
    height: auto;
}

/* Governing Body Page */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.member-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.member-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid var(--secondary-dark);
}

.member-card h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.member-card .role {
    color: var(--text-muted);
    font-size: 13px;
}

/* Contact Page */
.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
}

.contact-info-item {
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--secondary-dark);
}

/* Form Styles */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 82, 130, 0.25);
}

/* ==========================================
   Loading Spinner
   ========================================== */
.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   Breadcrumb
   ========================================== */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 20px 0;
    margin-bottom: 30px;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ==========================================
   Back to Top Button
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    .hero-carousel,
    .video-hero {
        height: 500px;
    }

    .hero-carousel .carousel-item {
        height: 500px;
    }

    .hero-carousel .carousel-content h1,
    .video-hero .video-content h1 {
        font-size: 2rem;
    }

    .hero-carousel .carousel-content p,
    .video-hero .video-content p {
        font-size: 1rem;
    }

    .btn-hero {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .stats-badge {
        font-size: 0.9rem;
        padding: 15px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .stat-card h3 {
        font-size: 28px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .leadership-card img {
        width: 100px;
        height: 100px;
    }

    .service-card .icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .contact-form,
    .contact-info {
        padding: 25px;
    }

    .member-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 24px;
    }

    .stat-card {
        padding: 20px;
    }

    .service-card,
    .temple-card {
        margin-bottom: 15px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    .navbar,
    .top-bar,
    .footer,
    .back-to-top {
        display: none;
    }

    .hero-section {
        background: var(--bg-white);
        color: var(--text-dark);
    }
}

/* News Detail */
        .news-detail-header {
            margin-bottom: 30px;
        }

        .news-detail-header h1 {
            font-size: 36px;
            font-weight: bold;
            color: var(--text-dark);
            margin-bottom: 20px;
            line-height: 1.3;
        }

        .news-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            color: var(--text-light);
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 2px solid var(--bg-light);
        }

        .news-meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .news-meta-item i {
            color: var(--primary-color);
        }

        .featured-image {
            width: 100%;
            height: 500px;
            object-fit: cover;
            border-radius: 12px;
            margin-bottom: 30px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }

        .news-content {
            font-size: 18px;
            line-height: 1.8;
            color: var(--text-dark);
        }

        .news-content h2 {
            font-size: 28px;
            font-weight: bold;
            color: var(--text-dark);
            margin: 30px 0 20px;
        }

        .news-content h3 {
            font-size: 24px;
            font-weight: 600;
            color: var(--text-dark);
            margin: 25px 0 15px;
        }

        .news-content p {
            margin-bottom: 20px;
        }

        .news-content ul, .news-content ol {
            margin: 20px 0;
            padding-left: 30px;
        }

        .news-content li {
            margin-bottom: 10px;
        }

        .quote-box {
            background: var(--bg-light);
            border-left: 4px solid var(--primary-color);
            padding: 20px 30px;
            margin: 30px 0;
            font-style: italic;
            font-size: 20px;
            color: var(--text-dark);
        }

        .info-box {
            background: linear-gradient(135deg, var(--primary-color), #3182ce);
            color: white;
            padding: 25px;
            border-radius: 12px;
            margin: 30px 0;
        }

        .info-box h4 {
            margin-bottom: 15px;
            font-size: 22px;
        }

        /* Gallery */
        .news-gallery {
            margin: 40px 0;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .gallery-item {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: transform 0.3s;
        }

        .gallery-item:hover {
            transform: scale(1.05);
        }

        .gallery-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        /* Share Buttons */
        .share-section {
            background: var(--bg-light);
            padding: 25px;
            border-radius: 12px;
            margin: 40px 0;
        }

        .share-section h4 {
            margin-bottom: 20px;
            color: var(--text-dark);
        }

        .share-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .share-btn {
            padding: 10px 20px;
            border-radius: 8px;
            color: white;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            font-weight: 500;
        }

        .share-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            color: white;
        }

        .share-facebook { background: #1877f2; }
        .share-twitter { background: #1da1f2; }
        .share-whatsapp { background: #25d366; }
        .share-telegram { background: #0088cc; }

        /* Sidebar */
        .sidebar-card {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            margin-bottom: 25px;
        }

        .sidebar-card h5 {
            color: var(--text-dark);
            font-weight: bold;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary-color);
        }

        .related-news-item {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--bg-light);
        }

        .related-news-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .related-news-thumb {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .related-news-content h6 {
            font-size: 15px;
            margin-bottom: 5px;
            line-height: 1.4;
        }

        .related-news-content h6 a {
            color: var(--text-dark);
            text-decoration: none;
            transition: color 0.3s;
        }

        .related-news-content h6 a:hover {
            color: var(--primary-color);
        }

        .related-news-date {
            font-size: 13px;
            color: var(--text-light);
        }

        /* Tags */
        .tags-section {
            margin: 30px 0;
        }

        .tag {
            display: inline-block;
            background: var(--bg-light);
            color: var(--text-dark);
            padding: 8px 16px;
            border-radius: 20px;
            margin: 5px;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.3s;
        }

        .tag:hover {
            background: var(--primary-color);
            color: white;
        }

        

/* Responsive */
@media (max-width: 768px) {
	.news-detail-header h1 {
		font-size: 28px;
	}

	.featured-image {
		height: 300px;
	}

	.news-content {
		font-size: 16px;
	}

	.news-meta {
		flex-direction: column;
		gap: 10px;
	}
}

/* ==========================================
   News Cards - Base Styles
   ========================================== */
.newscard-base {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.newscard-base:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   Service Cards - Base Styles
   ========================================== */
.servicecard-base {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.servicecard-base:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Enhanced Styles for Gram Panchayat Website */

/* Quick Links Section */
.quick-links-section {
    padding: 30px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.quick-link-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.quick-link-card .icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
    transition: var(--transition);
}

.quick-link-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.quick-link-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.quick-link-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.quick-link-card .link-arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.quick-link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Leadership Cards */
.leadership-card {
	min-height:245px;
    background: #efecec;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
	margin-bottom:20px;
	padding:10px;
}

.leadership-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.leadership-card .img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.leadership-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.leadership-card:hover .img-wrapper img {
    transform: scale(1.1);
}

.leadership-info {
    padding: 20px;
}

.leadership-info h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.leadership-info .designation {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px;
}

.leadership-info .contact-info {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Scheme Cards */
.scheme-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--primary-color);
}

.scheme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary-dark);
}

.scheme-card .scheme-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: white;
}

.scheme-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.4;
}

.scheme-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

.scheme-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.badge-scheme {
    background: linear-gradient(135deg, var(--accent-color), #2f855a);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.btn-link i {
    transition: var(--transition);
}

.btn-link:hover i {
    transform: translateX(3px);
}

/* Achievement Cards */
.achievement-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    flex-shrink: 0;
}

.achievement-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.achievement-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Carousel Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-item.active .animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.carousel-item.active .animate-fade-in {
    animation: fadeIn 1s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* Enhanced Navbar */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-text {
    line-height: 1.2;
}

.brand-text strong {
    font-size: 20px;
    color: var(--primary-color);
}

.brand-text small {
    font-size: 12px;
    color: var(--text-muted);
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 8px 15px !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Search Modal Enhancements */
#searchModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
}

#searchModal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color), 0.25);
}

.popular-searches .badge {
    cursor: pointer;
    padding: 8px 15px;
    transition: var(--transition);
}

.popular-searches .badge:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Top Bar Enhancements */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin: 0 8px;
    transition: var(--transition);
}

.top-bar a:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.language-switcher .btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.language-switcher .dropdown-menu {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* Font Size Controls */
body.font-size-large {
    font-size: 18px;
}

body.font-size-small {
    font-size: 14px;
}

/* Responsive Improvements */
@media (max-width: 991px) {
    .quick-links-section {
        margin-top: 0;
        padding: 60px 0 40px;
    }
    
    .quick-link-card {
        margin-bottom: 20px;
    }
    
    .leadership-card .img-wrapper {
        height: 250px;
    }
    
    .navbar-brand .brand-text strong {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .stats-badge {
        font-size: 14px;
    }
    
    .carousel-content h1 {
        font-size: 28px;
    }
    
    .carousel-content .lead {
        font-size: 16px;
    }
    
    .achievement-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .navbar,
    .back-to-top,
    .search-toggle,
    .accessibility-bar {
        display: none !important;
    }
}

.topbarcontact-info {
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 12px;
}

/* Budget Transparency Additional Styles */

/* Import Noto Sans Devanagari Font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700&display=swap');

/* Global Styles */
.budget-transparency-wrapper {
    font-family: 'Noto Sans Devanagari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Page Header */
.page-header {
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

/* Card Animations */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Icon Box */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Budget Item Hover Effect */
.budget-item {
    border-left: 4px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.budget-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.budget-item:hover::before {
    left: 100%;
}

.budget-item:hover {
    background-color: #f8f9fa;
    padding-left: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Progress Bar Styles */
.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #e9ecef;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, currentColor, currentColor 50%, rgba(255, 255, 255, 0.3));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    transition: width 0.6s ease;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Amount Badge */
.amount-badge {
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.amount-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Button Group */
.btn-group .btn {
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group .btn.active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Chart Container */
canvas {
    max-height: 400px;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Table Styles */
.table-hover tbody tr {
    transition: all 0.3s ease;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Financial Year Select */
#financialYearSelect {
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    transition: all 0.3s ease;
}

#financialYearSelect:focus {
    border-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    background-color: #fff;
}

/* Section Titles */
.display-5 {
    font-weight: 700;
    color: #1f2937;
    position: relative;
    display: inline-block;
}

.display-5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Detailed Breakdown Items */
#detailedBreakdown .bg-light {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#detailedBreakdown .bg-light:hover {
    background-color: #fff !important;
    border-color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

/* View Details Button */
.view-expense-details {
    transition: all 0.3s ease;
    font-weight: 500;
}

.view-expense-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .page-header {
        padding: 2rem 0 !important;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .btn-group {
        width: 100%;
    }
    
    .btn-group .btn {
        font-size: 0.875rem;
        padding: 10px 16px;
    }
    
    canvas {
        max-height: 250px;
    }
}

@media (max-width: 576px) {
    .amount-badge {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .budget-item:hover {
        padding-left: 16px;
    }
}

/* Print Styles */
@media print {
    .page-header,
    .btn-group,
    .view-expense-details,
    #financialYearSelect {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .budget-transparency-wrapper {
        font-size: 12pt;
    }
}

/* Accessibility */
.btn:focus,
.form-select:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.budget-summary .card,
.income-sources .card,
.expense-categories .card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.budget-summary .card:nth-child(1) { animation-delay: 0.1s; }
.budget-summary .card:nth-child(2) { animation-delay: 0.2s; }
.budget-summary .card:nth-child(3) { animation-delay: 0.3s; }

/* Government Officials Section Styles */
.government-officials-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

/* Section Header */
.section-header {
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Official Card */
.official-card-home {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.official-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
}

.badge-cm {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.badge-deputy {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.badge-minister {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.badge-officer {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.badge-other {
    background: linear-gradient(135deg, #a8a8a8 0%, #7f7f7f 100%);
}

/* Photo Wrapper */
.official-photo-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.official-photo-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.official-card-home:hover .official-photo-home {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.official-card-home:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    font-size: 40px;
    color: white;
}

/* Official Content */
.official-content {
    padding: 20px;
    text-align: center;
}

.official-name-home {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.3;
}

.official-position-home {
    font-size: 0.95rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
}

.official-department-home {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.official-contact {
    font-size: 0.8rem;
    color: #4a5568;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .official-photo-wrapper {
        height: 220px;
    }
    
    .official-content {
        padding: 18px;
    }
    
    .official-name-home {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.4rem;
    }
    
    .official-photo-wrapper {
        height: 250px;
    }
    
    .card-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* Card Container */
        .weather-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            padding: 20px;
            margin-bottom: 15px;
        }
        
        /* Header Section */
        .header-section {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }
        .header-section h1 {
            font-size: 24px;
            color: #333;
            margin: 0;
        }
        
        /* Toggle Buttons */
        .language-toggle, .unit-toggle {
            display: flex;
            gap: 8px;
        }
        .toggle-btn {
            padding: 6px 14px;
            border: 2px solid var(--secondary-dark);
            background: white;
            color: var(--primary-dark);
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
        }
        .toggle-btn.active {
            background: var(--secondary-color);
            color: white;
        }
        
        /* Current Weather */
        .current-weather {
            text-align: center;
            padding: 15px;
        }
        .location-name {
            font-size: 26px;
            font-weight: bold;
            color: #333;
        }
        .weather-icon img {
            width: 120px;
        }
        .temperature {
            font-size: 50px;
            font-weight: bold;
            color: var(--secondary-color);
            margin: 5px 0;
        }
        .weather-description {
            font-size: 18px;
            color: #666;
        }
        
        /* Weather Details Grid */
        .weather-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
            margin-top: 20px;
        }
        .detail-card {
            background: var(--secondary-color);
            color: var(--primary-dark);
            padding: 15px;
            border-radius: 10px;
            text-align: center;
        }
        .detail-card i {
            font-size: 24px;
            margin-bottom: 8px;
        }
        .detail-label {
            font-size: 12px;
            margin-bottom: 5px;
        }
        .detail-value {
            font-size: 20px;
            font-weight: bold;
        }
        
        /* Alerts Section */
        .alerts-section {
            background: #fff3cd;
            border-left: 4px solid #ffc107;
        }
        .alerts-section h3 {
            font-size: 20px;
            color: #856404;
            margin-bottom: 15px;
        }
        .alert-item {
            background: white;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 10px;
            border-left: 3px solid #dc3545;
        }
        .alert-title {
            font-weight: bold;
            color: #dc3545;
            font-size: 16px;
            margin-bottom: 5px;
        }
        .alert-description {
            color: #666;
            font-size: 13px;
        }
        .no-alerts {
            text-align: center;
            color: #28a745;
            font-size: 16px;
        }
        
        /* Forecast Section */
        .section-title {
            font-size: 22px;
            font-weight: bold;
            color: #333;
            text-align: center;
            margin-bottom: 15px;
        }
        .forecast-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px;
        }
        .forecast-card {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            border: 2px solid #e9ecef;
        }
        .forecast-day {
            font-weight: bold;
            color: var(--secondary-color);
            font-size: 16px;
            margin-bottom: 8px;
        }
        .forecast-icon img {
            width: 60px;
        }
        .forecast-temp {
            font-size: 20px;
            font-weight: bold;
            color: #333;
            margin: 8px 0;
        }
        .forecast-desc {
            font-size: 13px;
            color: #666;
        }
        
        /* Loading & Error */
        .loading {
            text-align: center;
            padding: 40px;
        }
        .spinner-border {
            width: 2.5rem;
            height: 2.5rem;
            color: #667eea;
        }
        .error-message {
            color: #dc3545;
            text-align: center;
            font-size: 16px;
        }
        
        /* Mobile Responsive */
        @media (max-width: 576px) {
            .header-section h1 {
                font-size: 20px;
            }
            .temperature {
                font-size: 40px;
            }
            .weather-details {
                grid-template-columns: repeat(2, 1fr);
            }
        }

.video-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    pointer-events: none;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .play-button-overlay {
    color: rgba(255, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}


.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.videomodal-body {
    background: #000;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

/* ========================================
   UPI Payment Styles
   Add this to your assets/css/style.css
   ======================================== */

/* Payment Method Section */
.payment-method-section {
    margin-bottom: 20px;
}

/* Payment Cards */
.payment-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.payment-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
    transform: translateY(-3px);
}

.payment-card:active {
    transform: translateY(0);
}

.payment-card h6 {
    margin: 10px 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.payment-card p {
    font-size: 11px;
    margin-bottom: 0;
}

/* Payment Icons */
.payment-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    color: white;
}

/* Icon Colors */
.phonepe-icon {
    background: linear-gradient(135deg, #5f259f 0%, #3b0f5f 100%);
}

.gpay-icon {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
}

.paytm-icon {
    background: linear-gradient(135deg, #00baf2 0%, #0082c6 100%);
}

.upi-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.netbanking-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* QR Code Section */
.qr-code-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin: 0 auto;
}

.qr-code-image {
    width: 250px;
    height: 250px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: block;
}

/* UPI ID Box */
.upi-id-box {
    max-width: 400px;
    margin: 20px auto;
}

.upi-id-box input {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
}

/* App Badges */
.app-badge {
    display: inline-block;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    margin: 5px;
}

.app-badge i {
    margin-right: 5px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

/* Success Animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.alert-success .fa-check-circle {
    animation: checkmark 0.5s ease-in-out;
}

/* Payment Processing State */
.payment-card.processing {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.payment-card.processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Enhancements */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-card {
        margin-bottom: 10px;
        min-height: 120px;
        padding: 15px 5px;
    }
    
    .payment-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .payment-card h6 {
        font-size: 13px;
    }
    
    .payment-card p {
        font-size: 10px;
    }
    
    .qr-code-image {
        width: 200px;
        height: 200px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

@media (max-width: 576px) {
    .payment-card {
        min-height: 100px;
        padding: 10px 5px;
    }
    
    .payment-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .qr-code-image {
        width: 180px;
        height: 180px;
    }
}

/* Alert Improvements */
.alert {
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #28a745;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #17a2b8;
}

.alert-danger {
    border-left-color: #dc3545;
}

/* Button Hover Effects */
.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* Fixed Positioned Alerts */
.position-fixed.alert {
    z-index: 9998;
    min-width: 300px;
    max-width: 500px;
}

/* Payment Method Header */
.payment-method-section h5 {
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.payment-method-section h5 i {
    margin-right: 10px;
    color: var(--primary-color, #007bff);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-dark);
    background-color: var(--primary-color);
    box-shadow: inset 0 calc(-1 * var(--primary-dark)) 0 var(--primary-dark);
}

/* Mobile Dropdown Fix */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        background-color: rgba(255, 255, 255, 0.1);
        margin-left: 15px;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item {
        color: white;
        padding: 8px 15px;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .dropdown.show .dropdown-menu {
        display: block;
    }
}

/* Contact Page Styles */

.newscard-base {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.newscard-base:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-item h6 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-info-item p {
    color: #666;
    margin-bottom: 4px;
}

.card-base {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.card-base:hover {
    transform: translateY(-3px);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto 15px;
    border-radius: 2px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(14, 135, 110, 0.15);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 135, 110, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    background: white;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 20px;
    background: #f8f9fa;
}

.breadcrumb-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 20px 0;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.8);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .contact-form, .contact-info {
        padding: 20px;
    }
    
    .card-base {
        padding: 20px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* Custom Scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}