:root {
    /* Color Palette */
    --primary-color: #002244;
    /* Dark Blue */
    --secondary-color: #FFD700;
    /* Gold */
    --accent-color: #e74c3c;
    /* Accent Red */
    --success-color: #2e7d32;
    /* Green */
    --info-color: #0277bd;
    /* Blue */
    --warning-color: #ff8f00;
    /* Orange */

    /* Voter Card Colors */
    --voter-1: #06880e;
    /* Green */
    --voter-2: #d04a0d;
    /* Orange/Red */
    --voter-3: #737373;
    /* Gray */

    /* Grayscale */
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #555;
    --white: #ffffff;
    --black: #000000;

    /* Shadows */
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --shadow-strong: rgba(0, 0, 0, 0.2);
    --shadow-blue: rgba(0, 34, 68, 0.7);

    /* Font Families */
    --font-primary: 'Poppins', sans-serif;
    --font-marathi: 'Noto Sans Devanagari', sans-serif;
    --font-baloo: 'Baloo 2', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    --border-radius-circle: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}


/* Body */
body {
    /* font-family: var(--font-primary); */
    color: var(--dark-gray);
    background-color: var(--white);
}

.marathi-text {
    font-family: var(--font-marathi);
}

/* Header */
.top-header {
    font-size: 14px;
    background: var(--primary-color);
    /* Dark Blue */
    color: var(--white);
}

.top-header a {
    color: var(--white);
    text-decoration: none;
}

.top-header a:hover {
    text-decoration: underline;
}

.right-side-logos{
    display: flex;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
    .top-header .header-right {
        margin-top: var(--spacing-sm);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    

    .top-header .header-right a,
    .top-header .header-right .dropdown {
        margin-right: var(--spacing-sm);
        margin-bottom: var(--spacing-xs);
    }
}

@media (max-width: 576px) {
    .top-header {
        font-size: 13px;
        text-align: left;
    }

    .top-header .container-fluid {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    .top-header span {
        display: block;
        margin-bottom: var(--spacing-xs);
    }
}

.header-right a {
    color: var(--white);
    text-decoration: none;
    margin-left: var(--spacing-md);
}

/* Base Styles */
.main-header {
    background: var(--white);
    padding: var(--spacing-sm) 0;
}

.main-header .logo {
    height: 80px;
    max-width: 100%;
}

.main-header .header-logo {
    height: 60px;
    max-width: 100%;
}

.main-header h2 {
    font-size: 24px;
    font-weight: bold;
}

.main-header p {
    font-size: 14px;
}

/* 📱 Tablet (≤ 992px) */

@media (max-width: 992px) {
    .main-header .logo {
        height: 70px;
    }

    .main-header .header-logo {
        height: 50px;
    }

    .main-header h2 {
        font-size: 20px;
    }

    .main-header p {
        font-size: 13px;
    }

}

/* 📱 Mobile (≤ 768px) */
@media (max-width: 768px) {
    .main-header .d-flex {
        flex-direction: column !important;
        text-align: center;
    }

    .main-header .d-flex.align-items-center {
        justify-content: center;
    }

    .main-header .logo {
        height: 60px;
        margin-bottom: var(--spacing-sm);
    }

    .main-header .header-logo {
        height: 45px;
        margin-bottom: var(--spacing-xs);
    }

    .main-header h2 {
        font-size: 18px;
    }

    .main-header p {
        font-size: 12px;
    }
}

/* 📱 Small Mobile (≤ 480px) */
@media (max-width: 480px) {
    .main-header .logo {
        height: 50px;
    }

    .main-header .header-logo {
        height: 40px;
    }

    .main-header h2 {
        font-size: 16px;
    }

    .main-header p {
        font-size: 11px;
    }
}

/* Navbar */
.navbar {
    background-color: var(--primary-color) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 15px 20px;
    transition: all var(--transition-normal);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 700;
    border-bottom: 3px solid var(--secondary-color);
}

/* Hero Slider */
.carousel-item img {
    height: 570px;
    /* object-fit: cover; */
}

.carousel-caption {
    background-color: var(--shadow-blue);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    bottom: 20%;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }

    .carousel-caption {
        bottom: 20px;
        padding: var(--spacing-sm);
    }

    .carousel-caption h2 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-indicators {
        display: none;
    }
}

@media (max-width: 560px) {
    .carousel-caption h2 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }

    .carousel-indicators {
        display: none;
    }
}


/* Section Header */
.section-header {
    text-align: left;
    border-left: 6px solid var(--secondary-color);
    padding-left: var(--spacing-md);
}

.section-title-left {
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Section Title Center */
.section-title {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    text-align: center;
    font-weight: 800;
    font-size: 2.3rem;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Info Card */
.info-card {
    border: none;
    border-radius: var(--border-radius-md);
    background: var(--white);
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    padding: 10px;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.info-card .card-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Temple Modern Card */
.temple-modern-card {
    border-top: 5px solid var(--secondary-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 3px 15px var(--shadow-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.temple-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.temple-img-wrapper {
    position: relative;
    overflow: hidden;
}

.temple-img-wrapper img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.temple-modern-card:hover img {
    transform: scale(1.05);
}

.temple-name-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
    background: var(--shadow-blue);
    color: var(--white);
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Border Accent */
.border-top-green {
    border-top: 6px solid var(--success-color);
}

.border-top-gold {
    border-top: 6px solid var(--secondary-color);
}

.border-top-blue {
    border-top: 6px solid var(--info-color);
}

.border-top-orange {
    border-top: 6px solid var(--warning-color);
}

/* Text */
.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Temple Card */
.temple-card {
    border: none;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: var(--white);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.temple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.temple-img {
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.temple-card:hover .temple-img {
    transform: scale(1.08);
}

/* Member Card */
.member-card {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 6px 20px var(--shadow-light);
    position: relative;
    background: var(--white);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-strong);
}

.card-top {
    height: 100px;
    background: var(--primary-color);
    clip-path: ellipse(100% 100% at 50% 0);
}

.profile-wrapper {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border: 5px solid var(--white);
    border-radius: var(--border-radius-circle);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    background: var(--white);
}

.profile-img {
    width: 100%;
    height: 100%;
}

.member-card .card-body {
    margin-top: 60px;
    padding-top: 20px;
}

.card-title {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-wrapper {
        width: 110px;
        height: 110px;
        top: 35px;
    }

    .card-top {
        height: 80px;
    }
}

/* GP Section */
.gp-section {
    background-color: var(--light-gray);
}

.gp-section-title {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.gp-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: var(--border-radius-sm);
}

.gp-card {
    border: none;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 15px var(--shadow-light);
    background: var(--white);
}

.gp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.gp-card-header {
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--primary-color) 50%, var(--white) 50%, var(--white) 100%);
}

.gp-img-container {
    width: 130px;
    height: 130px;
    border-radius: var(--border-radius-circle);
    padding: 5px;
    background: var(--white);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.gp-profile-img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-circle);
    border: 3px solid var(--primary-color);
    transition: all var(--transition-normal);
}

.gp-card:hover .gp-profile-img {
    transform: scale(1.05);
}

.gp-card-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.gp-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.gp-card-text {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.gp-contact-info {
    padding-bottom: var(--spacing-md);
}

.gp-text-muted {
    color: var(--dark-gray) !important;
    font-weight: 500;
    margin-bottom: 0;
}

.gp-text-muted i {
    color: var(--accent-color);
    margin-right: var(--spacing-xs);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: var(--spacing-xs);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-circle);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    margin-right: var(--spacing-xs);
    transition: all var(--transition-normal);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Voter List Section */
.voter-box {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    cursor: pointer;
}

.voter-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 15px var(--shadow-strong);
}

.voter-icon {
    font-size: 3rem;
    color: var(--light-gray);
    transition: color var(--transition-normal);
}

.voterCard {
    border: 1px solid var(--medium-gray);
    padding: 0 0 var(--spacing-md) 0;
    width: 100%;
    background-color: var(--light-gray);
    border-radius: var(--border-radius-sm);
}

.voter-1 {
    background-color: var(--voter-1);
}

.voter-2 {
    background-color: var(--voter-2);
}

.voter-3 {
    background-color: var(--voter-3);
}

/* Custom table styling */
.custom-table {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.custom-table thead th {
    background-color: var(--primary-color);
    color: var(--light-gray);
    text-align: center;
    font-weight: 600;
}

.custom-table tbody td {
    vertical-align: middle;
    text-align: start;
    font-size: 0.95rem;
}

.sectionnobkgheadertext {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    padding-bottom: var(--spacing-sm);
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--spacing-sm);
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px var(--shadow-strong);
}

/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    text-align: center;
    overflow: hidden;
    /* Prevent background scrolling */
}

.lightbox:target {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lightbox image */
.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--border-radius-md);
    box-shadow: 0 6px 20px var(--shadow-strong);
    animation: fadeIn var(--transition-normal) ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation + Close */
.lightbox .prev,
.lightbox .next,
.lightbox .close {
    color: var(--white);
    font-size: 40px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    padding: var(--spacing-sm);
    transition: var(--transition-normal);
    user-select: none;
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

.lightbox .close {
    top: 20px;
    right: 30px;
    transform: none;
    font-size: 50px;
}

.lightbox .prev:hover,
.lightbox .next:hover,
.lightbox .close:hover {
    color: var(--secondary-color);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .gallery-grid img {
        height: auto;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 70vh;
    }

    .lightbox .prev,
    .lightbox .next {
        font-size: 30px;
    }

    .lightbox .close {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .gallery-grid img {
        height: auto;
    }

    .lightbox .prev,
    .lightbox .next {
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    .footerComp {
        display: block;
        margin-top: 5px;
    }
}

/* Font size control styles */
.font-controls {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.font-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.font-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Font size classes that will be applied to body */
.font-small {
    font-size: 14px;
}

.font-normal {
    font-size: 16px;
}

.font-large {
    font-size: 18px;
}

.font-xlarge {
    font-size: 20px;
}

/* Adjust specific elements for different font sizes */
.font-small .main-header h2 {
    font-size: 20px !important;
}

.font-large .main-header h2 {
    font-size: 26px !important;
}

.font-xlarge .main-header h2 {
    font-size: 28px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-controls {
        margin-left: 10px;
        margin-top: 5px;
    }

    .font-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

 .back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1976d2;
    /* background-color: #1976d2; */
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
  
  .back-to-top-btn:hover {
    background-color: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  }
  
  .back-to-top-btn:active {
    transform: translateY(0);
  }

