/* Ballot Details Section */
.ballot-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(234, 85, 71, 0.05), rgba(253, 198, 44, 0.05));
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.ballot-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 4rem;
    position: relative;
}

.ballot-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(
        to right,
        var(--primary-color),
        var(--accent-color)
    );
}

.ballot-cards {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); */
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    gap: 2rem;
    /* max-width: 1200px; */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ballot-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ballot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        to right,
        var(--primary-color),
        var(--accent-color)
    );
}

.ballot-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ballot-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease;
}

.card-icon::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(234, 85, 71, 0.1);
    border-radius: 50%;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.ballot-card:hover .card-icon::after {
    transform: translate(-50%, -50%) scale(1.2);
    background: rgba(234, 85, 71, 0.2);
}

.ballot-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.ballot-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ballot-card ul li {
    color: var(--text-secondary);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.ballot-card ul li:last-child {
    border-bottom: none;
}

.ballot-card ul li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.8rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.ballot-card:hover ul li::before {
    transform: scale(1.2);
}

.ballot-card:hover ul li {
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Animation Classes */
.ballot-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.ballot-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Sequential Animation Delays */
.ballot-card:nth-child(1) { transition-delay: 0.1s; }
.ballot-card:nth-child(2) { transition-delay: 0.3s; }
.ballot-card:nth-child(3) { transition-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 992px) {
    .ballot-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Screen Optimization */
@media screen and (min-width: 2198px) and (max-width: 2560px) {
    .ballot-section {
        padding: 8rem 0;
    }

    .ballot-cards {
        max-width: 2200px;
        gap: 2.5rem;
        padding: 0 3rem;
        grid-template-columns: repeat(3, minmax(500px, 1fr));
        margin: 0 auto;
        width: 100%;
        justify-content: center;
        align-items: stretch;
    }

    .ballot-card {
        padding: 3.5rem;
        max-width: 650px;
        margin: 0 auto;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .ballot-section h2 {
        font-size: 3rem;
        margin-bottom: 3.5rem;
    }

    .ballot-card h3 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .card-icon {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .ballot-card ul {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .ballot-card ul li {
        font-size: 1.3rem;
        padding: 1rem 0;
    }

    .ballot-card ul li::before {
        font-size: 1.4rem;
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .ballot-section {
        padding: 4rem 0;
    }

    .ballot-section h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .ballot-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ballot-card {
        padding: 2rem 1.5rem;
    }
} 