* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #050b14;
    color: #111;
    line-height: 1.4;
}

/* --- Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0b2341;
    padding: 12px 35px;
    border-bottom: 3px solid #b31b1b;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo svg {
    height: 48px;
    width: auto;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.nav-logo svg:hover {
    transform: scale(1.02);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links li a:hover, .nav-links li a.active {
    color: #2ecc71;
}

/* --- Hero Section with Image Fade-In Slider --- */
.hero-slider {
    position: relative;
    height: 320px;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    border-bottom: 4px solid #2ecc71;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 25%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: slideAnimation 16s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }

@keyframes slideAnimation {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,11,20,0.4), rgba(5,11,20,0.85));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    z-index: 10;
}

.hero-overlay h1 {
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 900;
    color: #2ecc71;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    letter-spacing: 1px;
}

.hero-overlay h2 {
    font-size: 26px;
    text-transform: uppercase;
    font-weight: 800;
    color: #b31b1b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    margin-bottom: 5px;
}

.hero-overlay p {
    font-size: 14px;
    letter-spacing: 2px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Intro Announcement Section --- */
.intro-announcement {
    background: linear-gradient(135deg, #0b2341 0%, #050b14 100%);
    color: #ffffff;
    padding: 50px 20px;
    border-bottom: 4px solid #b31b1b;
    text-align: center;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.3);
}

.intro-container {
    max-width: 900px;
    margin: 0 auto;
}

.intro-announcement h2 {
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 900;
    color: #2ecc71;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.intro-subtagline {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #b31b1b;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.intro-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.intro-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(11, 35, 65, 0.6);
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 22px;
    border-radius: 6px;
    margin: 30px 0;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.detail-item {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.detail-item span {
    font-weight: 800;
    color: #2ecc71;
    margin-right: 6px;
}

.intro-callout {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-callout strong {
    display: block;
    font-size: 18px;
    color: #2ecc71;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.intro-callout span {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

/* --- Main Container Layout --- */
.container {
    display: flex;
    min-height: calc(100vh - 400px);
    width: 100%;
}

/* --- Left Side (Registration Form) --- */
.left-section {
    flex: 1;
    background: #ffffff;
    padding: 25px 35px;
    overflow-y: auto;
    border-right: 1px solid #ddd;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.brand-header {
    text-align: center;
    margin-bottom: 20px;
}

.brand-header h1 {
    font-size: 24px;
    color: #0b2341;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.brand-header p {
    font-size: 13px;
    color: #b31b1b;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #c3e6cb;
    font-weight: 600;
    font-size: 14px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #f5c6cb;
    font-weight: 600;
    font-size: 14px;
}

/* Form Grid & Inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    color: #0b2341;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 8px 12px;
    background-color: #0b2341;
    color: #ffffff;
    border: 2px solid #0b2341;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}

.form-group select option {
    background-color: #0b2341;
    color: #ffffff;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 6px 10px;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 2px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.form-group input:focus, .form-group select:focus {
    border-color: #b31b1b;
    outline: none;
    box-shadow: 0 0 5px rgba(179, 27, 27, 0.4);
}

.radio-container {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 2px;
}

.radio-group {
    display: flex;
    gap: 25px;
    margin-top: 2px;
}

.radio-group label {
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-transform: none;
    font-size: 13px;
}

.radio-group input[type="radio"] {
    accent-color: #0b2341;
    margin-right: 5px;
    transform: scale(1.1);
}

.btn-submit {
    background-color: #b31b1b;
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    font-size: 15px;
    font-weight: 800;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
    grid-column: span 2;
    box-shadow: 0 4px 6px rgba(179, 27, 27, 0.3);
}

.btn-submit:hover {
    background-color: #901212;
}

/* --- Right Side (Live Directory & Smooth Cross-Fade Slider) --- */
.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 25px 20px;
    background-color: #050b14;
}

.right-section h2 {
    color: #ffffff;
    font-size: 22px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.candidates-grid {
    position: relative;
    width: 100%;
    max-width: 420px;
    min-height: 520px;
    margin: 0 auto;
}

.candidate-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    /* Smooth 1.2-second cross-fade for both opacity and subtle scaling */
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    background: #ffffff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    border-top: 4px solid #b31b1b;
    z-index: 1;
}

.candidate-card.active-slide {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.candidate-poster {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background-color: #050b14;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.candidate-poster:hover {
    transform: scale(1.02);
}

.candidate-info {
    padding: 20px;
    text-align: center;
}

.candidate-name-uppercase {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 18px;
    color: #0b2341;
    margin-bottom: 6px;
}

.candidate-slogan {
    font-style: italic;
    color: #555;
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 500;
}

.candidate-badge {
    display: inline-block;
    background-color: #b31b1b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.candidate-location {
    font-size: 12px;
    color: #666;
    border-top: 1px solid #edf2f7;
    padding-top: 10px;
    margin-top: 6px;
    text-align: left;
}

.no-candidates {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 50px;
    font-size: 15px;
}

/* --- Image Modal Lightbox Styles --- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 11, 20, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0,0,0,0.8);
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.image-modal-close:hover {
    color: #2ecc71;
}

/* --- Responsive Media Queries for Small Devices --- */
@media (max-width: 950px) {
    .container {
        flex-direction: column;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width, .btn-submit {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        padding: 12px 15px;
        gap: 10px;
    }

    .nav-logo svg {
        height: 34px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links li a {
        font-size: 12px;
    }

    .hero-slider {
        height: 240px;
    }

    .hero-overlay h1 {
        font-size: 22px;
    }

    .hero-overlay h2 {
        font-size: 18px;
    }

    .hero-overlay p {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .left-section, .right-section {
        padding: 20px 15px;
    }
}


        /* --- Marquee Section Styles --- */
.marquee-section {
    background-color: #0b2341;
    padding: 30px 0;
    overflow: hidden;
    border-bottom: 4px solid #2ecc71;
    text-align: center;
}

.marquee-section h3 {
    color: #ffffff;
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.marquee-container {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 20px;
    /* Add your keyframe animation here for scrolling */
    animation: scrollMarquee 25s linear infinite;
}

/* Pause marquee animation on hover */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.ticker-card {
    background: #ffffff;
    border-radius: 8px;
    min-width: 280px;
    max-width: 280px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 4px solid #b31b1b;
}

/* Fix image cutting off: contain or scale properly */
.ticker-card img {
    width: 100%;
    height: 180px; /* Adjust height as needed */
    object-fit: contain; /* Prevents cutting/zooming by fitting the whole image inside */
    background-color: #f1f5f9; /* Fills empty space nicely if image aspect ratio varies */
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
}

.ticker-card h4 {
    font-size: 15px;
    color: #0b2341;
    font-weight: 800;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-badge {
    display: inline-block;
    background-color: #2ecc71;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ticker-card p {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}