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

:root {
    --primary-red: #DC143C;
    --primary-green: #228B22;
    --dark-red: #B22222;
    --dark-green: #006400;
    --light-red: #FF6B6B;
    --light-green: #90EE90;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-green);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Election Banner Section */
.election-banner {
    background-color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-red);
    border-bottom: 3px solid var(--primary-green);
}

.election-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.election-sign {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.sign-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red);
}

.sign-image {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.election-text {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-red);
    margin: 0;
    line-height: 1.6;
    padding: 0 20px;
}

/* Page Hero Section */
.page-hero {
    margin-top: 0;
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.7) 0%, rgba(34, 139, 34, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 0 20px;
}

/* Content with Images */
.content-with-image {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.content-image-left,
.content-image-right {
    flex: 0 0 300px;
}

.section-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    object-fit: cover;
}

.content-with-image .info-content {
    flex: 1;
}

/* Hero Section with Carousel */
.hero {
    margin-top: 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    padding: 3rem 0;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.carousel-item {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

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

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--light-red);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 2001;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--light-green);
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

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

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-image {
        max-height: 85vh;
    }
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.content-wrapper {
    background: var(--white);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-green);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-red);
}

.info-section {
    margin-bottom: 3rem;
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 5px solid var(--primary-red);
}

.info-content {
    padding: 0 1rem;
}

.info-content p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.info-content p:last-child {
    margin-bottom: 0;
}

/* Commitment Letter Styles */
.commitment-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 5px solid var(--primary-red);
    border-right: 5px solid var(--primary-green);
}

.commitment-address {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.commitment-greeting {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0;
}

.commitment-list {
    list-style: none;
    padding-left: 0;
}

.commitment-list li {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.commitment-list li::before {
    content: "•";
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0;
}

.commitment-list li strong {
    color: var(--primary-red);
    font-weight: 700;
}

.sub-subsection-title {
    font-size: 1.4rem;
    color: var(--primary-red);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--primary-green);
}

.commitment-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-green);
    font-style: italic;
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: 5px;
}

.commitment-conclusion {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.05) 0%, rgba(34, 139, 34, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-red);
    border-right: 5px solid var(--primary-green);
    margin-top: 2rem;
}

.commitment-conclusion p {
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-dark);
    line-height: 1.9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-left-color: var(--primary-red);
}

.info-item .label {
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-item .value {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}

.list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-left-color: var(--primary-green);
}

.list-item .bullet {
    font-weight: 700;
    color: var(--primary-green);
    min-width: 30px;
    font-size: 1.1rem;
}

.list-item span:last-child {
    color: var(--text-dark);
    line-height: 1.8;
    flex: 1;
}

/* Gallery Carousel Section */
.gallery-carousel-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 4rem 0;
    margin-top: 3rem;
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 2rem;
    font-weight: 700;
}

.gallery-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.gallery-carousel-track {
    display: flex;
    will-change: transform;
    gap: 15px;
    padding: 10px;
    transition: none;
}

.gallery-slide {
    min-width: calc(33.333% - 10px);
    flex: 0 0 calc(33.333% - 10px);
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.gallery-slide:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    z-index: 5;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-red);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--primary-red);
    transform: scale(1.3);
    border-color: var(--primary-green);
}

.dot:hover {
    background: var(--primary-green);
    transform: scale(1.2);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--light-green);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .election-sign {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sign-label {
        font-size: 1.1rem;
    }

    .sign-image {
        max-height: 60px;
    }

    .election-text {
        font-size: 1rem;
        padding: 0 15px;
    }

    .commitment-header {
        padding: 1rem;
    }

    .commitment-address {
        font-size: 1rem;
    }

    .commitment-greeting {
        font-size: 1.1rem;
    }

    .sub-subsection-title {
        font-size: 1.2rem;
    }

    .commitment-list li {
        font-size: 1rem;
        padding-left: 1.2rem;
    }

    .commitment-conclusion {
        padding: 1rem;
    }

    .commitment-conclusion p {
        font-size: 1rem;
    }

    .page-hero {
        height: 300px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .content-with-image {
        flex-direction: column;
        gap: 1.5rem;
    }

    .content-image-left,
    .content-image-right {
        flex: 1 1 100%;
        width: 100%;
    }

    .section-image {
        max-height: 300px;
        object-fit: cover;
    }

    .carousel-row {
        flex-direction: column;
    }

    .carousel-item {
        max-width: 100%;
    }

    .content-wrapper {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .subsection-title {
        font-size: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .sign-label {
        font-size: 1rem;
    }

    .sign-image {
        max-height: 50px;
    }

    .election-text {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .page-hero {
        height: 250px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .content-with-image {
        flex-direction: column;
    }

    .content-image-left,
    .content-image-right {
        width: 100%;
    }

    .gallery-carousel-section {
        padding: 2rem 0;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-slide {
        height: 400px;
        min-width: 100%;
        flex: 0 0 100%;
    }

    .subsection-title {
        font-size: 1.3rem;
    }

    .content-wrapper {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-slide {
        height: 350px;
    }
}