:root {
    --labour-red: #DC241F;
    --labour-dark: #1a1a1a;
    --labour-light: #f5f5f5;
    --text-primary: #333;
    --text-secondary: #666;
    --success-green: #4CAF50;
    --hover-red: #b01e1a;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--labour-red) 0%, var(--hover-red) 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    color: var(--labour-red);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--labour-red);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--hover-red);
    transform: translateY(-2px);
}

.error-message {
    color: var(--danger);
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    background: #f8d7da;
    display: none;
}

.error-message.show {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--labour-red);
    box-shadow: 0 0 0 2px rgba(220, 36, 31, 0.1);
}

/* Chyron (News Ticker) */
.chyron {
    background: var(--labour-red);
    color: white;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.chyron-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    padding-left: 100%;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Header */
.main-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.labour-logo {
    display: block;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 4px;
}

.main-nav a:hover {
    color: var(--labour-red);
    background: rgba(220, 36, 31, 0.05);
}

.btn-nav {
    background: var(--labour-red);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
}

.btn-nav:hover {
    background: var(--hover-red) !important;
    transform: translateY(-2px);
}

.btn-donate {
    background: var(--success-green);
}

.btn-donate:hover {
    background: #45a049 !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--labour-red);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Carousel */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--labour-dark);
}

.carousel {
    position: relative;
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 40px;
    color: white;
}

.we-are-labour {
    display: inline-block;
    background: var(--labour-red);
    color: white;
    padding: 8px 20px;
    font-weight: 600;
    margin-bottom: 15px;
    border-radius: 3px;
}

.caption-content h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.caption-content p {
    font-size: 1.2em;
    max-width: 600px;
    line-height: 1.5;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Main Content */
.main-content {
    padding: 60px 0;
    min-height: 500px;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h1 {
    color: var(--labour-red);
    margin-bottom: 30px;
    font-size: 2.5em;
}

/* Quick Actions */
.quick-actions {
    margin-top: 60px;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.action-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(220, 36, 31, 0.2);
    border-color: var(--labour-red);
}

.action-card h3 {
    color: var(--labour-red);
    margin-bottom: 15px;
}

.action-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-action {
    display: inline-block;
    background: var(--labour-red);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-action:hover {
    background: var(--hover-red);
    transform: translateX(5px);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.news-content h3 {
    color: var(--labour-red);
    margin-bottom: 10px;
}

/* Blog Posts */
.blog-posts {
    max-width: 800px;
}

.blog-post {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.blog-post h2 {
    color: var(--labour-red);
    margin-bottom: 10px;
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.blog-content {
    line-height: 1.8;
}

.read-more {
    color: var(--labour-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Councillor Grid */
.councillor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.councillor-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.councillor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.councillor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: var(--labour-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.councillor-card h3 {
    color: var(--labour-red);
    margin-bottom: 5px;
}

.councillor-ward {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* Footer */
.main-footer {
    background: var(--labour-dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--labour-red);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--labour-red);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--hover-red);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

/* Admin Button */
.admin-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--labour-red);
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
    z-index: 1000;
}

.admin-toggle:hover {
    background: var(--hover-red);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .main-nav.active .nav-list {
        display: flex;
    }
    
    .hero {
        height: 400px;
    }
    
    .caption-content h2 {
        font-size: 1.8em;
    }
    
    .caption-content p {
        font-size: 1em;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .councillor-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 20px;
    }
    
    .caption-content h2 {
        font-size: 1.5em;
    }
    
    .we-are-labour {
        font-size: 0.9em;
        padding: 6px 15px;
    }
}