* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a;
    line-height: 1.6;
    background: #fff;
}

/* ── Nav ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo-icon {
    color: #1e3a5f;
}

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

nav a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #D2042D;
}

.nav-cta {
    padding: 0.55rem 1.4rem;
    background: #D2042D;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
    background: #b5032a;
    transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 5% 4.5rem;
    background: linear-gradient(180deg, #fef2f2 0%, #fff 50%, #eff6ff 100%);
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 720px;
    margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.hero p {
    font-size: 1.15rem;
    max-width: 560px;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    background: #D2042D;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.cta-button:hover {
    background: #b5032a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(210,4,45,0.25);
}

.cta-secondary {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    color: #0038A8;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #bfdbfe;
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

.cta-secondary:hover {
    border-color: #0038A8;
    background: #eff6ff;
}

/* ── News Ticker ── */
.latest-news {
    background: #0f172a;
    padding: 0.8rem 5%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.news-ticker {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    font-size: 0.9rem;
}

.ticker-label {
    background: #D2042D;
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-text {
    color: #cbd5e1;
}

/* ── Elections Calendar ── */
.elections {
    padding: 5rem 5%;
    text-align: center;
}

.elections h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.elections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.election-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.election-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.election-card.upcoming {
    border-left: 4px solid #D2042D;
}

.election-card.past {
    border-left: 4px solid #94a3b8;
}

.election-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #fef2f2;
    color: #D2042D;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.election-status.past-status {
    background: #f1f5f9;
    color: #64748b;
}

.election-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #0f172a;
}

.election-date {
    font-size: 0.9rem;
    color: #D2042D;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.election-card.past .election-date {
    color: #64748b;
}

.election-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-link {
    color: #0038A8;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* ── Results ── */
.results {
    padding: 5rem 5%;
    background: #f8fafc;
    text-align: center;
}

.results h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.result-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-align: left;
}

.result-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.result-bar {
    margin-bottom: 1rem;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
    color: #475569;
}

.bar-label span:last-child {
    font-weight: 700;
    color: #0f172a;
}

.bar-track {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.result-meta {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #94a3b8;
    padding-top: 0.8rem;
    border-top: 1px solid #f1f5f9;
}

/* ── Parties ── */
.parties {
    padding: 5rem 5%;
    text-align: center;
}

.parties h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.parties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.party-card {
    padding: 1.8rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-align: left;
    transition: transform 0.2s;
}

.party-card:hover {
    transform: translateY(-3px);
}

.party-color {
    width: 40px;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.party-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.party-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Resources ── */
.resources {
    padding: 5rem 5%;
    background: #f8fafc;
    text-align: center;
}

.resources h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.resource-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 12px;
    color: #0038A8;
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

.resource-card p {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ── Stats ── */
.stats {
    padding: 4rem 5%;
    background: #0f172a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-top: 0.3rem;
}

/* ── Subscribe ── */
.subscribe {
    padding: 5rem 5%;
    text-align: center;
    background: linear-gradient(135deg, #D2042D 0%, #0038A8 100%);
    color: #fff;
}

.subscribe h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.subscribe p {
    opacity: 0.85;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.subscribe form {
    display: flex;
    gap: 0.75rem;
    max-width: 460px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe input {
    flex: 1;
    min-width: 240px;
    padding: 0.85rem 1.2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

.subscribe input:focus {
    outline: 3px solid rgba(255,255,255,0.3);
}

.subscribe button {
    padding: 0.85rem 2rem;
    background: #fff;
    color: #D2042D;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.subscribe button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ── Footer ── */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 5% 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #e2e8f0;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .hero {
        padding: 3.5rem 5% 3rem;
    }

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

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
