:root {
    --sdp-red: #E31E24;
    --primary-color: #2c3e50;
    --text-color: #2c3e50;
    --white: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0 40px;
    background-color: var(--sdp-red);
    overflow: hidden;
    min-height: auto;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--sdp-red) 0%, #c91920 100%);
    opacity: 0.9;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section .about-video-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    order: -1; /* This moves the video above other content */
}

.hero-section .about-video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0 30px;
    }

    .hero-section .about-video-wrapper {
        padding: 0 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 25px;
    }

    .hero-section .about-video-wrapper {
        padding: 0 0.5rem;
    }
}

/* Election Dates in Hero Section */
.hero-section .election-dates {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-section .election-dates:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hero-section .election-main-date {
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .election-main-date ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-section .election-main-date a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hero-section .election-main-date a::after {
    content: '→';
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.hero-section .election-main-date a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    padding-right: 3rem;
}

.hero-section .election-main-date a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Language-specific styles */
[lang="ne"] .hero-section .election-main-date a {
    font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section .election-main-date {
        padding: 0.875rem;
    }

    .hero-section .election-main-date a {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section .election-main-date {
        padding: 0.75rem;
    }

    .hero-section .election-main-date a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section .election-main-date a {
        transition: none;
    }
    
    .hero-section .election-main-date a:hover {
        transform: none;
        padding-right: 1.5rem;
    }
    
    .hero-section .election-main-date a::after {
        display: none;
    }
}

.hero-section .election-dates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.hero-section .election-date-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.hero-section .election-date-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.hero-section .election-date-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.hero-section .election-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0 30px;
    }

    .hero-section .election-dates {
        margin-top: 1.5rem;
        padding: 1.25rem;
    }

    .hero-section .election-main-date {
        font-size: 1.2rem;
        padding: 0.875rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 25px;
    }

    .hero-section .election-dates {
        margin-top: 1rem;
        padding: 1rem;
    }

    .hero-section .election-main-date {
        font-size: 1.1rem;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-section .election-date-item {
        padding: 0.875rem;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.1;
    letter-spacing: -1px;
    visibility: visible;
    opacity: 1;
    text-align: center;
}

.hero-position {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: white;
    margin: 1rem auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-cta {
    margin-top: 1rem;
}

.hero-cta .btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-width: 2px;
}

.hero-cta .btn-light {
    background: white;
    color: var(--sdp-red);
    border-color: white;
}

.hero-cta .btn-light:hover {
    background: transparent;
    color: white;
}

.hero-cta .btn-outline-light:hover {
    background: white;
    color: var(--sdp-red);
}

/* Updated Moving Text Container */
.moving-text-container {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2.5rem;
    height: 200px;
    overflow: hidden;
    position: relative;
    margin-left: 2rem;
    margin-top: 2.5rem; /* Added top margin */
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.moving-text-wrapper {
    position: relative;
}

.moving-text-item {
    color: white;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 1rem;
    text-align: justify;
    line-height: 1.6;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Section Titles - Now Red */
.section-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 0.5rem;
    position: relative;
}

h2, h3 {
    color: var(--sdp-red);
}

/* Animation Keyframes - Smoother */
@keyframes fadeInOut {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(20px);
    }
    3%, 17% { 
        opacity: 1; 
        transform: translateY(0);
    }
    20%, 97% { 
        opacity: 0; 
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-section {
        padding: 3rem 0 2rem;
        min-height: auto;
    }

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

    .hero-position {
        font-size: 1.3rem;
    }

    .hero-slogan {
        font-size: 1.4rem;
    }

    .moving-text-container {
        margin-left: 0;
        margin-top: 1.5rem;
        height: 180px;
    }

    .moving-text-item {
        font-size: 1.2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0 1.5rem;
    }

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

    .hero-position {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .hero-divider {
        margin: 1rem auto;
    }

    .hero-slogan {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    .moving-text-container {
        height: 150px;
        padding: 1.5rem;
    }

    .moving-text-item {
        font-size: 1.2rem;
        padding: 0.75rem;
    }
}

/* Section Styling */
section {
    padding: 4rem 0;
    scroll-margin-top: 100px;
}

.section-title {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Adjust navbar z-index */
.navbar {
    z-index: 1000;
}

/* Ensure section content is properly spaced */
.voting-info-section,
.municipal-info-section,
.appeal-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    section {
        scroll-margin-top: 80px;
    }
    
    .voting-info-section,
    .municipal-info-section,
    .appeal-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Content Cards */
.content-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    background: white;
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.navbar-brand {
    padding: 0.75rem 0;
}

.sdp-logo {
    height: 40px;
    width: auto;
}

.nav-top {
    position: absolute;
    right: 1.5rem;
    top: 0;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 1020;
}

.language-nav {
    padding: 0.25rem 0;
}

.lang-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.75rem;
}

.lang-list li a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lang-list li a.active {
    color: #E31E24;
    background-color: rgba(227, 30, 36, 0.1);
}

.lang-list li a:hover {
    color: #E31E24;
    background-color: rgba(227, 30, 36, 0.05);
}

/* Mobile styles */
@media (max-width: 991px) {
    .nav-top {
        position: static;
        padding: 0.5rem 1rem;
        border-bottom: none;
        background: #f8f9fa;
    }

    .lang-list {
        justify-content: center;
    }

    .lang-list li a {
        padding: 0.75rem 1rem;
    }
}

/* Focus styles for accessibility */
.lang-list li a:focus-visible {
    outline: 2px solid #E31E24;
    outline-offset: 2px;
}

.nav-link:focus-visible {
    outline: 2px solid #E31E24;
    outline-offset: -2px;
}

/* Improved mobile styles */
@media (min-width: 992px) {
    .lang-list li a {
        position: relative;
    }

    .lang-list li a:hover .lang-full,
    .lang-list li a:focus .lang-full {
        display: block;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        padding: 0.5rem 0.75rem;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        white-space: nowrap;
        margin-top: 0.5rem;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .lang-list li a.active {
        border: 2px solid CanvasText;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .lang-list li a,
    .nav-link::after {
        transition: none;
    }
}

.nav-link {
    padding: 0.5rem 0.8rem !important;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50 !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #E31E24;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: #E31E24 !important;
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar {
        padding: 0;
    }

    .nav-top {
        position: static;
        padding: 0.5rem 1rem;
        border-bottom: none;
        background: #f8f9fa;
    }

    .navbar-collapse {
        background: white;
        padding: 0;
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    .nav-link {
        padding: 1rem 1.5rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .nav-link::after {
        display: none;
    }

    .navbar-toggler {
        margin-right: 1rem;
        border: none;
        padding: 1rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* Updated Social Links Container */
.social-links-container {
    text-align: center;
    padding: 2rem 0;
    margin: 2rem auto;
    max-width: 800px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem auto;
}

/* Modern Social Button Styling */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    min-width: 180px;
}

/* Facebook Button */
.social-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #0d5ab9);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.2);
}

/* LinkedIn Button */
.social-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #005582);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.2);
}

/* Icon Styling */
.social-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.social-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.social-btn:hover i {
    transform: scale(1.1);
}

.social-btn.facebook:hover {
    background: linear-gradient(135deg, #0d5ab9, #1877f2);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
}

.social-btn.linkedin:hover {
    background: linear-gradient(135deg, #005582, #0077b5);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3);
}

/* Focus States for Accessibility */
.social-btn:focus {
    outline: none;
    color: white;
}

.social-btn.facebook:focus {
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.4);
}

.social-btn.linkedin:focus {
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.4);
}

/* Active State */
.social-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .social-btn {
        width: 100%;
        max-width: 250px;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .social-btn {
        max-width: 220px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .social-btn i {
        font-size: 1.1rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .social-btn {
        transition: none;
    }

    .social-btn:hover {
        transform: none;
    }

    .social-btn:hover i {
        transform: none;
    }
}

/* Contact Info Styling */
.contact-info {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.contact-info p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center; /* Keep contact info centered */
}

/* Accessibility Improvements */
.social-links a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    .social-links a:hover {
        transform: none;
    }
    
    .moving-text-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .moving-text-container {
        margin-left: 0;
        margin-top: 1.5rem;
        height: 180px;
    }
    
    .social-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .moving-text-container {
        height: 150px;
        padding: 1.5rem;
    }
    
    .moving-text-item {
        font-size: 1.2rem;
        padding: 0.75rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* General Text Improvements */
p {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    hyphens: auto;
}

/* Content Sections */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* About Section */
.about-content p {
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Responsive Typography */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-position {
        font-size: 1.3rem;
    }

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

/* Footer Styling */
.footer {
    background-color: #E31E24;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    color: white;
    text-align: center;
}

.copyright {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-social a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
    }

    .copyright {
        font-size: 0.9rem;
    }

    .footer-social {
        gap: 1rem;
    }

    .footer-social a {
        font-size: 1rem;
    }
}

/* Accessibility */
.footer-social a:focus {
    outline: 2px solid white;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .footer-social a:hover {
        transform: none;
    }
}

/* About Section Image Styling */
.about-image-wrapper {
    flex: 0 0 300px;
    position: relative;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    margin-top: 1rem;
}

.about-image-wrapper:hover {
    transform: rotate(0deg) translateY(-5px);
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .about-image-wrapper {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .about-image-wrapper {
        width: 280px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 480px) {
    .about-image-wrapper {
        width: 240px;
    }
}

/* Content styling */
.about-content {
    flex: 1;
    padding: 0;
    max-width: none;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    text-align: justify;
}

/* Section title styling */
.section-title.about-title {
    margin-bottom: 5rem; /* Space for the image */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-image-wrapper {
        margin: -3rem auto 1.5rem;
        max-width: 160px;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .section-title.about-title {
        margin-bottom: 4rem;
    }
}

/* Career and Community Section Shared Styling */
.career-section, 
.community-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    height: 100%;
    min-height: 600px; /* Set fixed minimum height for both sections */
    display: flex;
    flex-direction: column;
}

/* Timeline Styling for both sections */
.timeline,
.involvement-list {
    position: relative;
    padding: 1rem 0;
}

/* Add scrolling to involvement list */
.involvement-list {
    overflow-y: auto;
    max-height: 500px; /* Adjust this value as needed */
    scrollbar-width: thin;
    scrollbar-color: rgba(227, 30, 36, 0.5) #f0f0f0;
    padding-right: 1rem; /* Add some padding for the scrollbar */
}

/* Webkit scrollbar styling for involvement list */
.involvement-list::-webkit-scrollbar {
    width: 6px;
}

.involvement-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.involvement-list::-webkit-scrollbar-thumb {
    background-color: rgba(227, 30, 36, 0.5);
    border-radius: 3px;
}

.involvement-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(227, 30, 36, 0.7);
}

/* Keep the vertical line for timeline effect */
.timeline::before,
.involvement-list::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, rgba(227, 30, 36, 0.2), rgba(227, 30, 36, 0.1));
    border-radius: 3px;
}

/* Section titles */
.career-section h2,
.community-section h2 {
    margin-bottom: 2rem;
    color: var(--sdp-red);
    font-size: 1.8rem;
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem 0;
    z-index: 1;
}

.timeline-item,
.involvement-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child,
.involvement-item:last-child {
    margin-bottom: 0;
}

.timeline-badge,
.year-badge {
    width: 100px;
    flex-shrink: 0;
    font-weight: 600;
    color: #E31E24;
    text-align: right;
    padding-right: 2rem;
    font-size: 0.9rem;
    padding-top: 0.5rem;
}

.timeline-content,
.involvement-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    margin-left: 2rem;
    flex-grow: 1;
    position: relative;
    border: 1px solid rgba(227, 30, 36, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover,
.involvement-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.timeline-content::before,
.involvement-content::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #E31E24;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.2);
    transition: all 0.3s ease;
}

.timeline-content:hover::before,
.involvement-content:hover::before {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.3);
}

.timeline-content h4,
.involvement-content h4 {
    color: #E31E24;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p,
.involvement-content p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .career-section, 
    .community-section {
        min-height: 500px;
        margin-bottom: 2rem;
    }

    .involvement-list {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .career-section, 
    .community-section {
        min-height: 400px;
        padding: 1.5rem;
    }

    .involvement-list {
        max-height: 350px;
    }

    .timeline::before,
    .involvement-list::before {
        left: 80px;
    }
}

/* Why I'm Running Section */
#why-running {
    background-color: #f8f9fa;
    position: relative;
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.vision-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #E31E24;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.lead-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #2c3e50;
    text-align: justify;
    margin-bottom: 0;
}

/* Campaign Sections */
.campaign-sections {
    margin-top: 3rem;
}

.campaign-sections .section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.campaign-sections .section:last-child {
    margin-bottom: 0;
}

.campaign-sections h2 {
    color: #E31E24;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.campaign-sections p {
    color: #2c3e50;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.campaign-sections ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.campaign-sections li {
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.campaign-sections strong {
    color: #E31E24;
}

/* Get Involved Section */
.help-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Changed from space-between to space-around */
    gap: 2rem; /* Increased gap */
    padding: 2rem 0; /* Increased padding */
}

.help-card {
    flex: 0 1 calc(33.333% - 2rem); /* Set specific width with margin consideration */
    min-width: 280px; /* Increased minimum width */
    max-width: 350px; /* Added maximum width */
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem; /* Increased padding */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin: 0.5rem; /* Added margin */
}

.help-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .help-grid {
        gap: 1.5rem;
    }

    .help-card {
        flex: 0 1 calc(50% - 2rem);
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .help-grid {
        gap: 1rem;
    }

    .help-card {
        flex: 0 1 100%;
        max-width: 400px;
        margin: 0.5rem auto;
    }
}

/* Icon styling */
.help-icon {
    font-size: 1.8rem;
    color: #E31E24;
    margin-bottom: 1rem;
}

.help-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.help-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.help-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Events Card Specific Styling */
.events-card {
    grid-column: span 1; /* Changed from span 3 to span 1 */
    min-height: auto;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(227, 30, 36, 0.5) #f0f0f0;
}

/* Webkit scrollbar styling */
.events-list::-webkit-scrollbar {
    width: 6px;
}

.events-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.events-list::-webkit-scrollbar-thumb {
    background-color: rgba(227, 30, 36, 0.5);
    border-radius: 3px;
}

.event-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #E31E24;
    transition: transform 0.2s ease;
}

.event-item:hover {
    transform: translateX(5px);
}

.event-item h4 {
    color: #E31E24;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.event-time, 
.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.event-time i, 
.event-location i {
    color: #E31E24;
    width: 16px;
}

/* Button styling */
.volunteer-btn, 
.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #E31E24;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

.volunteer-btn:hover, 
.support-btn:hover {
    background: #c91920;
    transform: translateY(-2px);
}

/* Donation info styling */
.donation-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .help-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .events-card {
        grid-column: span 1;
    }

    .events-list {
        grid-template-columns: 1fr;
        max-height: 350px;
    }

    .help-card {
        margin-bottom: 1rem;
        min-height: auto;
    }

    .help-content h3 {
        font-size: 1.1rem;
    }

    .help-content p {
        font-size: 0.9rem;
    }
}

/* Contact Section Base Styling */
.contact-section {
    background: #f8f9fa;
    padding: 3rem 0;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 0 auto;
    max-width: 600px;
}

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

.contact-details {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    word-break: break-all;
}

.contact-item i {
    color: #E31E24;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-value {
    font-size: 0.95rem;
    word-break: break-all;
    overflow-wrap: break-word;
    flex: 1;
}

/* Email specific styling */
.email-link {
    word-break: break-all;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .contact-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .contact-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }

    .contact-value, 
    .email-link {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .contact-item i {
        font-size: 1rem;
    }
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
    padding: 0.5rem;
}

.social-links a i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .social-links {
        padding: 0 1rem;
    }

    .social-links a {
        font-size: 0.85rem;
    }

    /* Email link specific */
    .email-link {
        word-break: break-all;
        font-size: 0.85rem;
        max-width: 100%;
    }
}

/* Larger screens */
@media (min-width: 768px) {
    .social-links {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }

    .social-links a {
        width: auto;
    }
}

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

[lang="ne"] {
    font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif !important;
}

/* Ensure proper rendering for Nepali text */
[lang="ne"] * {
    letter-spacing: normal;
    word-spacing: normal;
}

/* Voting Information Section */
.voting-info-section {
    background: #f8f9fa;
    padding: 4rem 0;
    display: none; /* Hidden by default */
}

[lang="ne"] .voting-info-section {
    display: block;
}

.voting-info-content {
    margin: 0 auto;
    padding: 0;
}

.voting-info-section .container {
    max-width: 1200px; /* Match the width of other sections */
    margin: 0 auto;
    padding: 0 15px;
}

.voting-info-section .col-lg-10 {
    width: 100%;
    padding: 0;
}

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #E31E24;
    margin-bottom: 2rem;
}

.info-card h3 {
    color: #E31E24;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.info-card p {
    color: #2c3e50;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Municipal Information Section */
.municipal-info-section {
    background: #f8f9fa;
    padding: 4rem 0;
    display: none; /* Hidden by default */
}

[lang="ne"] .municipal-info-section {
    display: block; /* Show only in Nepali */
}

.municipal-info-content {
    margin: 0 auto;
    padding: 0;
}

.municipal-info-section .container {
    max-width: 1200px; /* Match the width of other sections */
    margin: 0 auto;
    padding: 0 15px;
}

.municipal-info-section .col-lg-10 {
    width: 100%;
    padding: 0;
}

.service-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #E31E24;
    font-size: 1.5rem;
    line-height: 1;
}

.nomination-methods h4 {
    color: #E31E24;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Comparison Section Styling */
.comparison-section {
    margin-top: 3rem;
}

.comparison-block {
    margin-bottom: 2.5rem;
}

.comparison-block:last-child {
    margin-bottom: 0;
}

.comparison-block h4 {
    color: #E31E24;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(227, 30, 36, 0.1);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 100%;
}

.country-block {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.country-block h5 {
    color: #E31E24;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.bullet-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.bullet-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #E31E24;
    font-size: 1.5rem;
    line-height: 1;
}

.example-text {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .country-block {
        padding: 1.25rem;
    }
}

/* Appeal Section Styling */
.appeal-section {
    display: none;
}

[lang="ne"] .appeal-section {
    display: block;
}

.appeal-intro {
    margin-bottom: 2rem;
}

.appeal-intro p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

.appeal-points {
    margin-top: 2rem;
}

.appeal-intro-text {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 500;
}

.point-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #E31E24;
}

.point-card:last-child {
    margin-bottom: 0;
}

.point-card h4 {
    color: #E31E24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.point-card p {
    margin-bottom: 0;
    color: #2c3e50;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .point-card {
        padding: 1.25rem;
    }
}

/* Nepali-specific menu items */
.nepali-only {
    display: none;
}

[lang="ne"] .nepali-only {
    display: block;
}

/* Ensure proper spacing in navigation */
.navbar-nav .nav-item {
    margin: 0 5px;
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        margin: 0;
    }
}

/* Nepali Navigation Items */
[lang="ne"] .nepali-only {
    display: block !important;
}

.navbar-nav .nav-item.nepali-only .nav-link {
    font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
    font-weight: 500;
}

@media (max-width: 991px) {
    .navbar-nav .nav-item.nepali-only {
        margin-top: 0.5rem;
    }
}

/* Nepali Font and Unicode Support */
@font-face {
    font-family: 'Noto Sans Devanagari';
    src: url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');
    unicode-range: U+0900-097F; /* Devanagari Unicode range */
}

[lang="ne"] {
    font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure proper rendering for Nepali text */
[lang="ne"] * {
    letter-spacing: normal;
    word-spacing: normal;
    text-rendering: optimizeLegibility;
}

/* Specific styles for Nepali headings */
[lang="ne"] h1,
[lang="ne"] h2,
[lang="ne"] h3,
[lang="ne"] h4,
[lang="ne"] h5,
[lang="ne"] h6 {
    font-weight: 600;
    line-height: 1.4;
}

/* Specific styles for Nepali paragraphs */
[lang="ne"] p {
    line-height: 1.8;
    text-align: justify;
}

/* Ensure proper font weight for navigation */
[lang="ne"] .nav-link {
    font-weight: 500;
}

/* Fix Nepali text alignment in cards */
[lang="ne"] .info-card,
[lang="ne"] .point-card {
    text-align: justify;
}

/* Ensure proper font rendering in buttons */
[lang="ne"] .btn {
    font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
    font-weight: 500;
}

/* Add support for Nepali numerals */
[lang="ne"] .number {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Center subtitle in Nepali version */
[lang="ne"] .hero-slogan {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    font-size: 1.8rem;
    font-weight: 500;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    [lang="ne"] .hero-slogan {
        font-size: 1.4rem;
        padding: 0 1rem;
    }
}

/* About Section Layout */
.about-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

/* Content styling */
.about-content {
    flex: 1;
    padding-right: 1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
    font-size: 1.1rem;
}

/* Image styling */
.about-image-wrapper {
    flex: 0 0 300px;
    position: relative;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    margin-top: 1rem;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Improved Mobile Responsiveness */
@media (max-width: 991px) {
    .about-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .about-image-wrapper {
        flex: none;
        width: 250px;
        margin: 0 auto 1.5rem;
        transform: none;
    }

    .about-content {
        padding-right: 0;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .about-image-wrapper {
        width: 200px;
        padding: 0.75rem;
        margin-bottom: 2rem;
    }

    .about-content p {
        font-size: 0.95rem;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }

    .about-content-wrapper {
        margin-top: 1rem;
        gap: 1.5rem;
    }
}

/* Remove hover effects on mobile */
@media (hover: none) {
    .about-image-wrapper:hover {
        transform: none;
    }
}

/* Core Values List Styling */
.core-values-list {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.core-values-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.core-values-list li::before {
    content: '•';
    color: #E31E24;
    font-size: 1.5rem;
    position: absolute;
    left: 0.5rem;
    top: -0.2rem;
}

[lang="ne"] .core-values-list li {
    font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
    text-align: justify;
}

/* Motivations List Styling */
.motivations-list {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.motivations-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.motivations-list li::before {
    content: '•';
    color: #E31E24;
    font-size: 1.5rem;
    position: absolute;
    left: 0.5rem;
    top: -0.2rem;
}

[lang="ne"] .motivations-list li {
    font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
    text-align: justify;
}

/* Add more spacing between motivation points */
.motivations-list li:not(:last-child) {
    margin-bottom: 2.5rem;
}

/* Policy Priorities Styling */
.policy-intro {
    margin-bottom: 3rem;
}

.policy-issue {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #E31E24;
}

.policy-issue h4 {
    color: #E31E24;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.priorities-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.priorities-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.priorities-list li::before {
    content: '•';
    color: #E31E24;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.commitment {
    margin-top: 2rem;
    font-style: italic;
    color: #2c3e50;
}

[lang="ne"] .policy-issue,
[lang="ne"] .priorities-list li {
    font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
}

.disclaimer-text {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Social Links Fixes */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
    padding: 0.5rem;
}

/* Contact Section Responsive Adjustments */
@media (max-width: 576px) {
    .social-links {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .social-links a {
        padding: 0.5rem 0;
    }

    .email-link {
        word-break: break-all;
        font-size: 0.85rem;
    }
}

/* Email Link Specific Styling */
.email-link.contact-value {
    word-break: break-all;
    max-width: 100%;
    display: inline-block;
}

/* Nepali Text Alignment - General Rule */
[lang="ne"] p,
[lang="ne"] .about-content p,
[lang="ne"] .policy-issue p,
[lang="ne"] .core-values-list li,
[lang="ne"] .motivations-list li,
[lang="ne"] .priorities-list li,
[lang="ne"] .endorser-title,
[lang="ne"] .content-section p {
    text-align: left;
    line-height: 1.8;
    font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
}

/* Endorser Card Specific Styling for Nepali */
[lang="ne"] .endorser-card {
    text-align: left;
    padding: 1.5rem;
}

[lang="ne"] .endorser-name {
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    line-height: 1.4;
}

[lang="ne"] .endorser-title {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 0.5rem;
    min-height: 3.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    box-orient: vertical;
    overflow: hidden;
}

/* Policy Section Nepali Alignment */
[lang="ne"] .policy-issue {
    text-align: left;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    [lang="ne"] .endorser-name {
        font-size: 1.1rem;
    }

    [lang="ne"] .endorser-title {
        font-size: 0.9rem;
        padding: 0 0.25rem;
    }
}

@media (max-width: 480px) {
    [lang="ne"] .endorser-name {
        font-size: 1rem;
        margin: 0.75rem 0 0.4rem;
    }

    [lang="ne"] .endorser-title {
        font-size: 0.85rem;
        min-height: 2.8em;
    }
}

/* Nepali Motivations Section Styling */
[lang="ne"] .key-motivations {
    margin: 2rem 0;
}

[lang="ne"] .motivations-list {
    margin: 1rem 0;
    padding: 0;
}

[lang="ne"] .motivations-list li {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #E31E24;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Remove default bullet points */
[lang="ne"] .motivations-list li::before {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    [lang="ne"] .motivations-list li {
        padding: 0.875rem 1.25rem;
        margin-bottom: 0.875rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    [lang="ne"] .motivations-list li {
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Nepali Core Values Section Styling */
[lang="ne"] .core-values {
    margin: 2rem 0;
}

[lang="ne"] .core-values-list {
    margin: 1rem 0;
    padding: 0;
}

[lang="ne"] .core-values-list li {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #E31E24;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
    list-style: none;
}

/* Remove default bullet points and padding */
[lang="ne"] .core-values-list li::before {
    display: none;
}

[lang="ne"] .core-values-list li {
    padding-left: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    [lang="ne"] .core-values-list li {
        padding: 0.875rem 1.25rem;
        margin-bottom: 0.875rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    [lang="ne"] .core-values-list li {
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Add specific alignment for Finnish content in help cards */
[lang="fi"] .help-content h3,
[lang="fi"] .help-content p {
    text-align: left;
}

[lang="fi"] .help-card {
    text-align: left;
}

[lang="fi"] .bank-details {
    text-align: left;
}

[lang="fi"] .info-item {
    text-align: left;
}

/* Ensure donation info text is also left-aligned in Finnish */
[lang="fi"] .donation-info {
    text-align: left;
}

/* Event status text alignment */
[lang="fi"] .event-status {
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    .help-card {
        margin-bottom: 1rem;
        min-height: auto;
    }
}

/* Ensure content fills space properly */
.help-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Push buttons to bottom of card */
.help-content .volunteer-btn,
.help-content .donation-info,
.help-content .event-status {
    margin-top: auto;
}

/* Event styling */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--sdp-red);
}

.event-item h4 {
    color: var(--sdp-red);
    margin-bottom: 0.5rem;
}

.event-time {
    font-weight: 500;
    color: #666;
    margin-bottom: 0.25rem;
}

.event-location {
    color: #444;
    margin-bottom: 0.5rem;
}

.event-description {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Event styling within help card */
.help-card .events-list {
    margin: 1rem 0;
    max-height: 250px; /* Reduced height to fit better in card */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sdp-red) #f0f0f0;
}

/* Webkit scrollbar styling */
.help-card .events-list::-webkit-scrollbar {
    width: 6px;
}

.help-card .events-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.help-card .events-list::-webkit-scrollbar-thumb {
    background-color: var(--sdp-red);
    border-radius: 3px;
}

.help-card .event-item {
    background: #f8f9fa;
    padding: 0.875rem;
    border-radius: 8px;
    border-left: 3px solid var(--sdp-red);
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease;
}

.help-card .event-item:last-child {
    margin-bottom: 0;
}

.help-card .event-item:hover {
    transform: translateX(5px);
}

.help-card .event-item h4 {
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.help-card .event-item h4 a {
    color: var(--sdp-red);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.help-card .event-item h4 a:hover {
    text-decoration: underline;
}

.help-card .event-item h4 a:focus {
    outline: none;
}

.help-card .event-time,
.help-card .event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.help-card .event-time i,
.help-card .event-location i {
    color: var(--sdp-red);
    width: 16px;
    font-size: 0.875rem;
}

.fb-events-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #1877f2;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    width: 100%;
    justify-content: center;
}

.fb-events-link:hover {
    background: #1664d9;
    color: white !important;
    text-decoration: none;
}

.fb-events-link i {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .help-card .events-list {
        max-height: 200px;
    }

    .help-card .event-item {
        padding: 0.75rem;
    }

    .help-card .event-item h4 a {
        font-size: 0.95rem;
    }
}

/* Video container and thumbnail styling */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Standard 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: #f8f9fa;
    margin: 0.5rem auto; /* Reduced margin */
    max-width: 500px;
    transition: transform 0.3s ease;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-thumbnail-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Play button styling */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-left: 45px solid rgba(227, 30, 36, 0.9);
    border-bottom: 25px solid transparent;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 15px rgba(227, 30, 36, 0.3));
}

/* Remove the icon as we're using CSS triangle */
.play-button i {
    display: none;
}

/* Enhanced hover effects */
.video-container:hover {
    transform: translateY(-5px);
}

.video-thumbnail-link:hover .video-thumbnail {
    transform: scale(1.05);
    opacity: 0.6;
}

.video-thumbnail-link:hover .play-button::before {
    border-left-color: rgba(227, 30, 36, 1);
    filter: drop-shadow(0 6px 20px rgba(227, 30, 36, 0.4));
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .video-container {
        padding-bottom: 50%;
        max-width: 450px;
        margin: 1rem auto 2rem;
    }
}

@media (max-width: 768px) {
    .video-container {
        padding-bottom: 55%;
        max-width: 400px;
    }
    
    .play-button::before {
        border-top: 20px solid transparent;
        border-left: 35px solid rgba(227, 30, 36, 0.9);
        border-bottom: 20px solid transparent;
    }
}

@media (max-width: 480px) {
    .video-container {
        padding-bottom: 60%;
        max-width: 100%;
    }
    
    .play-button::before {
        border-top: 15px solid transparent;
        border-left: 25px solid rgba(227, 30, 36, 0.9);
        border-bottom: 15px solid transparent;
    }
}

/* Endorsements Section */
.endorsements-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.endorsement-item {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 200px; /* Adjust as needed */
}

.endorsement-photo {
    width: 100px; /* Adjust size as needed */
    height: 100px; /* Adjust size as needed */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.endorsement-name {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.endorsement-title {
    font-size: 0.9rem;
    color: #666;
}

.endorser-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.endorser-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
    text-align: center;
}

/* Base endorser title style */
.endorser-title {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Language-specific alignments */
[lang="en"] .endorser-title {
    text-align: center;  /* Center align for English */
}

[lang="fi"] .endorser-title,
[lang="ne"] .endorser-title {
    text-align: left;    /* Left align for Finnish and Nepali */
    padding-left: 20px;
}

.endorser-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin: 15px 0;
    text-align: center;
}

.endorser-organization {
    font-weight: 500;
    color: #007bff;
    margin-top: 10px;
    text-align: center;
}

/* Event Images Styling */
.event-image {
    width: 100%;
    max-height: 400px; /* Maximum height */
    height: auto; /* Allow height to adjust based on content */
    object-fit: contain; /* Show full image without cropping */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    background-color: #f8f9fa; /* Light background for images */
    padding: 1rem; /* Add some padding around images */
}

.event-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Event Images Container */
.event-images-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    align-items: center; /* Center images vertically */
}

.event-image-wrapper {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center; /* Center images horizontally */
}

/* Responsive adjustments for event images */
@media (max-width: 768px) {
    .event-images-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .event-image-wrapper {
        max-width: 100%;
    }

    .event-image {
        max-height: 350px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .event-image {
        max-height: 300px;
        margin-bottom: 1rem;
        padding: 0.5rem;
    }
}

/* Bank Details and MobilePay Styling */
.bank-details {
    background-color: var(--sdp-red);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.2);
}

.bank-details p {
    color: white;
    margin: 0.5rem 0;
    text-align: center;
    font-size: 1.1rem;
}

.mobilepay-info {
    background-color: var(--sdp-red);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.2);
}

.mobilepay-info p {
    color: white;
    margin: 0.5rem 0;
    text-align: center;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bank-details,
    .mobilepay-info {
        padding: 0.875rem 1.25rem;
    }

    .bank-details p,
    .mobilepay-info p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .bank-details,
    .mobilepay-info {
        padding: 0.75rem 1rem;
    }

    .bank-details p,
    .mobilepay-info p {
        font-size: 0.95rem;
    }
}

/* Election Dates Highlight Section */
.election-dates {
    background: linear-gradient(135deg, var(--sdp-red) 0%, #c91920 100%);
    padding: 1.25rem;
    margin: 1.25rem auto;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.25);
    max-width: 800px;
    color: white;
}

.election-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.election-main-date {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    color: white;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.election-date-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

.election-date-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.election-date-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.election-date {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: white;
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .election-dates {
        padding: 1rem;
        margin: 1rem;
        border-radius: 18px;
    }

    .election-dates-grid {
        gap: 0.5rem;
    }

    .election-main-date {
        font-size: 1.1rem;
        padding: 0.6rem;
        border-radius: 12px;
    }

    .election-date-item {
        padding: 0.6rem;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .election-dates {
        padding: 0.875rem;
        border-radius: 15px;
    }

    .election-main-date {
        font-size: 1rem;
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 10px;
    }

    .election-date-item {
        padding: 0.5rem;
        border-radius: 10px;
    }
}

/* Video container and thumbnail styling */
.about-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.about-video-wrapper iframe {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: #f8f9fa;
    border: none;
    transition: transform 0.3s ease;
}

.about-video-wrapper iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Responsive adjustments for video */
@media (max-width: 991px) {
    .about-video-wrapper {
        margin: 1.5rem auto;
    }
}

@media (max-width: 768px) {
    .about-video-wrapper {
        margin: 1rem auto;
    }
}

@media (max-width: 480px) {
    .about-video-wrapper {
        padding: 0 0.5rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .about-video-wrapper iframe {
        transition: none;
    }
    
    .about-video-wrapper iframe:hover {
        transform: none;
    }
}

/* Hero Section Video Styling */
.hero-section .about-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    z-index: 2;
}

.hero-section .about-video-wrapper iframe {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.hero-section .about-video-wrapper iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* Adjust hero section layout */
.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section .about-video-wrapper {
        margin: 1.5rem auto;
    }
}

@media (max-width: 768px) {
    .hero-section .about-video-wrapper {
        margin: 1rem auto;
    }
}

@media (max-width: 480px) {
    .hero-section .about-video-wrapper {
        padding: 0 0.5rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-section .about-video-wrapper iframe {
        transition: none;
    }
    
    .hero-section .about-video-wrapper iframe:hover {
        transform: none;
    }
}

/* News Links Styling */
.news-links {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
}

.news-links li {
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

.news-links li:hover {
    transform: translateY(-5px);
}

.news-links a {
    display: block;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(227, 30, 36, 0.1);
    border-left: 6px solid var(--sdp-red);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.news-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-links a::after {
    content: '→';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: var(--sdp-red);
}

.news-links a:hover {
    color: var(--sdp-red);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.15);
    border-color: rgba(227, 30, 36, 0.3);
    padding-right: 4rem;
}

.news-links a:hover::before {
    opacity: 1;
}

.news-links a:hover::after {
    opacity: 1;
    right: 1.5rem;
}

/* Language-specific styles */
[lang="ne"] .news-links a {
    font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .news-links {
        margin: 1.5rem;
    }

    .news-links a {
        font-size: 1rem;
        padding: 1.25rem 1.75rem;
    }
}

@media (max-width: 768px) {
    .news-links {
        margin: 1rem;
    }

    .news-links a {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .news-links a:hover {
        padding-right: 3rem;
    }

    .news-links a::after {
        font-size: 1.25rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .news-links,
    .news-links li,
    .news-links a,
    .news-links a::before,
    .news-links a::after {
        transition: none;
    }
    
    .news-links li:hover {
        transform: none;
    }
}