:root {
    --primary: #0C6A4A;
    --secondary: #F26522;
    --light-green: #E1F5EE;
    --dark: #333333;
    --light: #F8F9FA;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: #f0f2f5;
    color: var(--dark);
    line-height: 1.6;
}

.navbar {
    background-color: var(--primary);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.hero-section {
    background: linear-gradient(rgba(12, 106, 74, 0.9), rgba(12, 106, 74, 0.8)), url('/api/placeholder/1800/600') no-repeat center center;
    background-size: cover;
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-box {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.search-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: var(--primary);
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #095539;
    border-color: #095539;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.stats-section {
    background-color: var(--light-green);
    padding: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-title {
    color: var(--dark);
    font-weight: 500;
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.social-icons {
    font-size: 1.5rem;
}

.social-icons a {
    color: white;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* About Section Styles */
.about-section {
    background-color: #fff;
}

.about-content {
    padding-right: 2rem;
}

.section-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 2.5rem;
}

.about-features .feature-item {
    font-size: 1.1rem;
}

.about-features .feature-item i {
    color: var(--primary);
}

.about-image {
    position: relative;
    padding: 1rem;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-card {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.stat-item h3 {
    color: var(--primary);
    font-weight: 700;
    font-size: 2rem;
}

.stat-item p {
    color: var(--dark);
    font-weight: 500;
}

/* Mission Section Styles */
.mission-section {
    background-color: var(--light);
}

.mission-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: var(--light-green);
    border-radius: 50%;
    margin: 0 auto;
    font-size: 2rem;
    color: var(--primary);
}

.mission-card .card-title {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 991px) {
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .stats-card {
        position: relative;
        margin-top: 1rem;
    }
}

/* Candidate Profile Styles */
.candidate-profile-section {
    background: #fff;
    padding: 50px 0;
}

.profile-header {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.profile-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    object-fit: cover;
}

.party-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    color: white;
    text-align: center;
    font-weight: 600;
}

.profile-info .candidate-name {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.constituency {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 500;
}

.basic-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.basic-info .info-item i {
    width: 30px;
    color: var(--primary);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-green);
    color: var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.details-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.details-card .card-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.experience-list,
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-list li,
.activity-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}

.experience-list li:before,
.activity-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.manifesto-points .point-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.point-icon {
    width: 50px;
    height: 50px;
    background: var(--light-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 15px;
}

.point-content h5 {
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info .contact-item i {
    width: 30px;
    color: var(--primary);
}

.asset-info .asset-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.asset-info .asset-item:last-child {
    border-bottom: none;
}

.asset-label {
    color: var(--dark);
    font-weight: 500;
}

.asset-value {
    color: var(--primary);
    font-weight: 600;
}

/* Related Candidates Section */
.related-candidates {
    background: var(--light);
}

.section-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .profile-header {
        padding: 20px;
    }

    .profile-info .candidate-name {
        font-size: 2rem;
    }

    .details-card {
        margin-bottom: 20px;
    }
}

.candidates-section {
    background-color: #f8f9fa;
}

.section-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.candidate-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.candidate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.candidate-image {
    position: relative;
    overflow: hidden;
}

.candidate-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.candidate-card:hover .candidate-image img {
    transform: scale(1.05);
}

.candidate-party {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 15px;
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

.candidate-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 280px;
}

.candidate-name {
    font-size: 1.2rem;
    line-height: 1.4;
    height: 3.36rem;
    /* 1.2 * 1.4 * 2 */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.candidate-constituency {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
    height: 2.8rem;
    /* Space for even one line or two if needed, but keeping it fixed */
    overflow: hidden;
}

.candidate-details {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.detail-item i {
    color: var(--secondary);
    margin-right: 10px;
    margin-top: 3px;
}

.btn-view-profile {
    background-color: var(--primary);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
}

.btn-view-profile:hover {
    background-color: #095539;
    color: white;
}

@media (max-width: 767px) {
    .candidate-image img {
        height: 220px;
    }
}