@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
    width: 100%;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFFCC;
    backdrop-filter: blur(30px);
    z-index: 1000;
    padding: 0 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 6px;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 70px;
    position: relative;
    gap: 40px;
}

@media (max-width: 768px) {
    .nav-container {
        gap: 20px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        gap: 8px;
        height: 50px;
    }
}

.nav-logo {
    position: absolute;
    left: 0;
    font-size: 22px;
    font-weight: 800;
    color: #1e40af;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #1e40af;
    border-bottom-color: #1e40af;
}

.nav-links a.active {
    border-bottom-color: #FF7A00;
}

.nav-auth {
    display: flex;
    gap: 15px;
}

.nav-auth-mobile {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: absolute;
    right: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
    border-radius: 2px;
}

.btn-login {
    color: #0B37A6;
    background: transparent;
    border: 2px solid #0B37A6;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #0B37A6;
    color: white;
}

.btn-register {
    color: white;
    background: #0B37A6;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #0B2d8a;
}


    /* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    margin-top: 70px;
    height: calc(100vh - 70px); /* Fill the remaining screen height */
    min-height: 600px; /* Ensure strictly minimum height on small screens */
    width: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 90%);
    background-image: url('../images/landing-bg.webp'); /* Update to relative path just in case */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background-attachment removed to allow scrolling */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    overflow: hidden; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(19, 65, 180, 0.26);

    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    font-style: italic;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
   
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
     vertical-align: middle;
}

.btn-vote {
    background: #1e40af;
    color: white;
    border: 2px solid #1e40af;
}

.btn-vote:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
}

.btn-elections {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-elections:hover {
    background: white;
    color: #1e40af;
}

.btn-primary {
    background: #1e40af;
    color: white;
}

.btn-primary:hover {
    background: #1e3a8a;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* Hero Section Mobile Fixes */
@media (max-width: 768px) {
    .hero {
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        height: auto;
        min-height: 500px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: auto;
        padding: 12px 32px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .hero {
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        min-height: 420px;
        padding: 20px;
    }

    .hero-content {
        max-width: 100%;
        padding: 20px 0;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: auto;
        padding: 11px 28px;
        min-width: 130px;
        font-size: 14px;
    }
}

/* ==================== ANNOUNCEMENTS ==================== */
.announcements {
    background: white;
    padding: 80px 0;
}

@media (max-width: 768px) {
    .announcements {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .announcements {
        padding: 30px 0;
    }
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 8px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }
}
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 12px;
        margin-bottom: 15px;
    }
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.announcement-item {
    display: flex;
    gap: 30px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    transition: all 0.18s ease;
}

@media (max-width: 768px) {
    .announcement-item {
        gap: 16px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .announcement-item {
        gap: 10px;
        padding: 12px;
    }
}

.announcement-item:hover {
    box-shadow: 0 4px 12px rgba(11, 55, 166, 0.10);
    transform: translateY(-1px);
}

.announcement-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .announcement-date {
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .announcement-date {
        min-width: 50px;
    }
}

.date-day {
    font-size: 20px;
    color: #1e40af;
}

@media (max-width: 768px) {
    .date-day {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .date-day {
        font-size: 14px;
    }
}

.date-year {
    font-size: 12px;
    color: #999;
}

@media (max-width: 480px) {
    .date-year {
        font-size: 10px;
    }
}

.announcement-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .announcement-content h3 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .announcement-content h3 {
        font-size: 13px;
    }
}

.announcement-content p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

@media (max-width: 768px) {
    .announcement-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .announcement-content p {
        font-size: 12px;
    }
}
    font-size: 14px;
}

.view-all {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.view-all a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-all a:hover {
    color: #092d8a;
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .view-all {
        margin-top: 40px;
    }
    
    .view-all a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .view-all {
        margin-top: 30px;
    }
    
    .view-all a {
        font-size: 13px;
    }
}

/* ==================== ELECTIONS ==================== */
.elections {
    background: white;
    padding: 80px 0;
}

@media (max-width: 768px) {
    .elections {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .elections {
        padding: 30px 0;
    }
}

/* ==================== ELECTION RESULTS ==================== */
.election-results {
    background: #f8f9fa;
    padding: 80px 0;
}

.results-title-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-title-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.results-title-header p {
    color: #666;
    font-size: 16px;
}

@media (max-width: 768px) {
    .results-title-header h2 {
        font-size: 24px;
    }
    
    .results-title-header p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .results-title-header h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .results-title-header p {
        font-size: 12px;
    }
}

.election-results h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.results-subtitle {
    color: #666;
    margin-bottom: 50px;
    font-size: 16px;
}

.results-organization {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.org-logo {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c41e3a, #d64045);
    color: white;
    border-radius: 50%;
    font-size: 32px;
    flex-shrink: 0;
}

.org-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #1a1a1a;
    font-weight: 600;
}

.status-active {
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.results-position h3 {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #1a1a1a;
}

.candidate-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.candidate-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 16px 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #1e40af;
    transition: all 0.3s ease;
}

.candidate-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.candidate-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e40af;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.candidate-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.candidate-info {
    flex: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    row-gap: 8px;
}

.candidate-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.candidate-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.party-badge {
    display: inline-block;
    background: #fed7aa;
    color: #92400e;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
    white-space: nowrap;
}

.vote-count {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    align-self: center;
}

.vote-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.vote-progress {
    height: 100%;
    background: linear-gradient(90deg, #1e40af, #2563eb);
    border-radius: 4px;
}

.results-notice {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}
.segment2 { stroke: #FF7A00; }
.segment3 { stroke: #6c757d; }

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.total-icon {
    font-size: 20px;
    display: block;
}

.total-votes {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
}

.total-label {
    font-size: 11px;
    color: #666;
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-color.green { background: #28a745; }
.legend-color.orange { background: #FF7A00; }
.legend-color.gray { background: #6c757d; }

.candidates-ranking {
    flex: 1;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
}

.rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: white;
}

.rank-1 .rank-badge { background: #28a745; }
.rank-2 .rank-badge { background: #FF7A00; }
.rank-3 .rank-badge { background: #6c757d; }

.candidate-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.candidate-info {
    flex: 1;
}

.candidate-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.party-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.party-tag.green { background: #d4edda; color: #155724; }
.party-tag.orange { background: #fff3cd; color: #856404; }
.party-tag.gray { background: #e9ecef; color: #495057; }

.votes {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.results-disclaimer {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.results-disclaimer p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

/* ==================== CANDIDATES ==================== */
.candidates {
    background: white;
}

@media (max-width: 768px) {
    .candidates {
        padding: 40px 0;
    }
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .filter-tabs {
        gap: 6px;
        margin-bottom: 20px;
    }
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .filter-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
}

/* Mobile Dropdown Styles */
.filter-dropdown-wrapper {
    display: none;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .filter-dropdown-wrapper {
        display: block;
    }
}

.filter-dropdown {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #0b37a6;
    box-shadow: 0 0 0 3px rgba(11, 55, 166, 0.1);
}

.filter-dropdown:hover {
    border-color: #0b37a6;
}

@media (max-width: 480px) {
    .filter-dropdown {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Announcement Dropdown Styles (Mobile Filter for Announcements) */
.announcement-dropdown-wrapper {
    display: none;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .announcement-dropdown-wrapper {
        display: block;
    }
}

.announcement-dropdown {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.announcement-dropdown:focus {
    outline: none;
    border-color: #0b37a6;
    box-shadow: 0 0 0 3px rgba(11, 55, 166, 0.1);
}

.announcement-dropdown:hover {
    border-color: #0b37a6;
}

@media (max-width: 480px) {
    .announcement-dropdown {
        padding: 10px 12px;
        font-size: 13px;
    }
}

.filter-btn.active {
    background: #0B37A6;
    color: white;
    border-color: #0B37A6;
}

.filter-btn:hover:not(.active) {
    border-color: #0B37A6;
    color: #0B37A6;
}

.election-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.election-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.election-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.election-status {
    font-size: 12px;
    color: #666;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .candidates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .candidates-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .candidates-grid {
        gap: 10px;
    }
}

.candidate-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .candidate-card {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .candidate-card {
        padding: 12px;
    }
}

.candidate-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.candidate-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e0e0e0;
}

@media (max-width: 768px) {
    .candidate-image {
        width: 100px;
        height: 100px;
        margin: 0 auto 10px;
    }
}

@media (max-width: 480px) {
    .candidate-image {
        width: 80px;
        height: 80px;
        margin: 0 auto 8px;
    }
}

.candidate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.position-badge {
    display: inline-block;
    background: #0B37A6;
    color: white;
    font-size: 11px;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.party-name {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.tagline {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-bottom: 15px;
}

.btn-view-platform {
    width: 100%;
    padding: 10px;
    border: 1px solid #0B37A6;
    background: white;
    color: #0B37A6;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-platform:hover {
    background: #0B37A6;
    color: white;
}

.candidates-actions {
    text-align: center;
}

/* Removed duplicate orange .btn-vote to restore original blue style */

/* ==================== HOW IT WORKS SECTION ==================== */
.how-it-works {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.how-it-works h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
    color: #1a1a1a;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.step-card {
    padding: 40px 30px;
    background: transparent;
    border-radius: 0;
}

.step-number {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 25px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.step-card p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #050914;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 14px;
}

/* ==================== RESPONSIVE ==================== */

/* ==================== RESPONSIVE ENHANCEMENTS ==================== */
@media (max-width: 1200px) {
    .section-container {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .elections-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .elections-list {
        grid-template-columns: 1fr;
    }
    .winners-grid {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
        left: 0;
    }
    .nav-auth-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 200px;
        align-items: center;
    }
    .nav-auth-mobile .btn-login {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
        font-size: 14px;
        border: none;
        background: transparent;
        color: #333;
    }
    .nav-auth-mobile .btn-login:hover {
        background: rgba(30, 64, 175, 0.1);
    }
    .nav-auth-mobile .btn-register {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
        font-size: 14px;
        background: transparent;
        color: #333;
    }
    .nav-auth-mobile .btn-register:hover {
        background: rgba(30, 64, 175, 0.1);
    }
    .nav-auth {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 13px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .btn-vote, .btn-elections {
        width: 100%;
        text-align: center;
    }
    .announcement-item {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }
    .announcement-date {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: left;
    }
    .elections-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .winner-row {
        grid-template-columns: 36px 38px 1fr 1fr 80px 60px;
        font-size: 12px;
        gap: 8px;
        padding: 10px 8px;
    }
    .winners-grid {
        gap: 8px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .modal-content {
        width: 98%;
        margin: 12% auto;
    }
}

@media (max-width: 600px) {
    .results-summary-card, .winner-position-card, .election-card {
        padding: 12px 8px;
    }
    .winner-row {
        grid-template-columns: 28px 28px 1fr 1fr 60px 40px;
        font-size: 11px;
        gap: 4px;
        padding: 6px 2px;
    }
    .election-details {
        gap: 4px;
    }
    .detail-row {
        gap: 4px;
        font-size: 11px;
    }
    .footer-section h4 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 8px;
    }
    .nav-container {
        gap: 10px;
        height: 56px;
    }
    .hero {
        min-height: 400px;
        padding: 60px 8px 30px;
    }
    .hero-title {
        font-size: 20px;
    }
    .hero-subtitle {
        font-size: 11px;
    }
    .btn, .btn-vote, .btn-elections, .btn-primary, .btn-large {
        padding: 8px 10px;
        font-size: 13px;
    }
    .section-header h2, .section-container > h2 {
        font-size: 18px;
    }
    .announcement-content h3 {
        font-size: 15px;
    }
    .announcement-content p {
        font-size: 12px;
    }
    .election-name {
        font-size: 15px;
    }
    .election-org-name {
        font-size: 10px;
    }
    .winner-name, .winner-party-cell, .winner-votes-cell {
        font-size: 11px;
    }
    .footer-section p, .footer-section ul li a {
        font-size: 11px;
    }
    .footer-bottom {
        font-size: 11px;
    }
    .modal-content {
        width: 100%;
        margin: 18% auto;
    }
}
