html {
    scroll-behavior: smooth;
}

:root {
    --primary-blue: #0d6efd;
    --primary-hover: #0b5ed7;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #212529;
    --text-muted: #1a1b1b;
    --border-color: #e9ecef;
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* Clean White Navbar */
.navbar {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-blue) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 10px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
}

.btn-outline-primary {
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 20px;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white) !important;
}

/* Split Hero Section */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef2f7 100%);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .text-highlight {
    color: var(--primary-blue);
}

.hero-img-wrapper img {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.btn-primary {
    background-color: var(--primary-blue);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3);
}

/* How to Vote Cards */
.step-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.step-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    background: #eef4ff;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Event Cards with Images */
.section-title {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
}

.event-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.event-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.event-img-wrapper {
    position: relative;
    height: 200px;
    width: 100%;
    background-color: #e9ecef;
    /* Fallback color */
}

.event-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-live {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #0f5132;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.badge-closed {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #41464b;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
}

.card-body {
    padding: 25px 20px;
}

.event-title {
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 1.15rem;
}

.btn-light-blue {
    background-color: #eef4ff;
    color: var(--primary-blue);
    font-weight: 600;
    border: none;
}

.btn-light-blue:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-event-closed {
    background-color: #eef2f7;
    color: #64748b;
    border: 1px solid #dbe4f0;
    font-weight: 700;
    cursor: not-allowed;
}

/* Simple Dark Footer */
.footer {
    background-color: #1c2331;
    color: #fff;
    padding: 60px 0 20px 0;
    margin-top: 60px;
}

.footer a {
    color: #aeb6c1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--white);
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-img-wrapper {
        margin-top: 40px;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        margin-top: 10px;
        border: 1px solid var(--border-color);
    }
}

/* MOBILE OFFCANVAS SIDEBAR (NEW) */
.offcanvas {
    width: 280px !important;
}

.offcanvas-body .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.offcanvas-body .nav-link.active {
    background-color: rgba(13, 110, 253, 0.08) !important;
    color: var(--primary-blue) !important;
}

.offcanvas-body i {
    width: 25px;
    font-size: 1.1rem;
}
