/* ==========================================================================
   Tom Lewandowski Campaign Website - Main Stylesheet
   Conservative Party | Tipton Green Ward | Sandwell Council
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #1E3A5F;
    --color-primary-dark: #152C4A;
    --color-primary-light: #2B5A8F;
    --color-accent: #4A90D9;
    --color-accent-light: rgba(74, 144, 217, 0.1);
    --color-bg: #FFFFFF;
    --color-bg-alt: #F5F7FA;
    --color-text: #2D3748;
    --color-heading: #1E3A5F;
    --color-muted: #718096;
    --color-border: #E2E8F0;
    --color-success: #38A169;
    --color-error: #E53E3E;
    --color-warning: #D69E2E;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.25s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-light);
}

ul, ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
}

p {
    margin-bottom: 1em;
}

.lead {
    font-size: 1.2rem;
    color: var(--color-muted);
    line-height: 1.8;
}

.text-muted {
    color: var(--color-muted);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.section-heading {
    text-align: center;
    margin-bottom: 48px;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.section-heading p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: background-color var(--transition), box-shadow var(--transition), padding var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

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

.navbar__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.navbar__logo:hover {
    color: #fff;
    opacity: 0.9;
}

.navbar__links {
    display: none;
    gap: 28px;
    align-items: center;
}

@media (min-width: 768px) {
    .navbar__links {
        display: flex;
    }
}

.navbar__links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color var(--transition);
}

.navbar__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
    color: #fff;
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
    width: 100%;
}

.navbar__links .navbar__cta {
    background-color: var(--color-warning);
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background-color var(--transition), transform var(--transition);
}

.navbar__links .navbar__cta:hover {
    background-color: #C08A1E;
    transform: translateY(-1px);
}

.navbar__links .navbar__cta::after {
    display: none;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

@media (min-width: 768px) {
    .hamburger { display: none; }
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-primary-dark);
    z-index: 999;
    padding: 80px 30px 30px;
    transition: right 0.35s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: color var(--transition), padding-left var(--transition);
}

.mobile-menu a:hover {
    color: #fff;
    padding-left: 8px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 95, 0.88) 0%,
        rgba(21, 44, 74, 0.75) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 20px;
}

.hero__content h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .hero__content h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 992px) {
    .hero__content h1 {
        font-size: 4rem;
    }
}

.hero__content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-family);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

/* White outline variant for hero */
.btn-outline-white {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
    background-color: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background-color: #3A7FC8;
    border-color: #3A7FC8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background-color: var(--color-success);
    color: #fff;
    border-color: var(--color-success);
}

.btn-success:hover {
    background-color: #2E8B57;
    border-color: #2E8B57;
    color: #fff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card__title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.card__text {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------------------------------------
   9. Forms
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 6px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.form-control::placeholder {
    color: var(--color-muted);
    opacity: 0.7;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

input[type="file"].form-control {
    padding: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

input[type="file"].form-control::file-selector-button {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    margin-right: 12px;
    font-size: 0.85rem;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background-color var(--transition);
}

input[type="file"].form-control::file-selector-button:hover {
    background-color: var(--color-border);
}

.form-error {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-help {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-control.is-invalid {
    border-color: var(--color-error);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

/* --------------------------------------------------------------------------
   10. Alerts
   -------------------------------------------------------------------------- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
}

.alert-success {
    background-color: #F0FFF4;
    color: #22543D;
    border-left-color: var(--color-success);
}

.alert-error {
    background-color: #FFF5F5;
    color: #742A2A;
    border-left-color: var(--color-error);
}

.alert-warning {
    background-color: #FFFFF0;
    color: #744210;
    border-left-color: var(--color-warning);
}

.alert-info {
    background-color: #EBF8FF;
    color: #2A4365;
    border-left-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   11. Blog
   -------------------------------------------------------------------------- */
.blog-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card__body {
    padding: 24px;
}

.blog-card__date {
    font-size: 0.8rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.blog-card__title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.blog-card__title a {
    color: var(--color-heading);
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--color-accent);
}

.blog-card__excerpt {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card__read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
}

.blog-card__read-more:hover {
    color: var(--color-primary);
}

/* Single blog post */
.blog-post {
    max-width: 740px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-post__meta {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.blog-post__content {
    font-size: 1.05rem;
    line-height: 1.65;
}

.blog-post__content h2,
.blog-post__content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.blog-post__content p {
    margin-bottom: 0.75em;
}

.blog-post__content ul,
.blog-post__content ol {
    margin-bottom: 0.75em;
    padding-left: 1.5em;
    list-style: disc;
}

.blog-post__content ol {
    list-style: decimal;
}

.blog-post__content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 16px 20px;
    margin: 1.5em 0;
    background-color: var(--color-bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--color-muted);
    font-style: italic;
}

.blog-post__content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

/* --------------------------------------------------------------------------
   12. Issue Report Cards / Status Badges
   -------------------------------------------------------------------------- */
.report-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--color-border);
    margin-bottom: 16px;
    transition: box-shadow var(--transition);
}

.report-card:hover {
    box-shadow: var(--shadow-sm);
}

.report-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.report-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-heading);
}

.report-card__meta {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.report-card__description {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-new {
    background-color: #EBF8FF;
    color: #2B6CB0;
}
.status-new::before {
    background-color: #4299E1;
}

.status-progress {
    background-color: #FFFFF0;
    color: #975A16;
}
.status-progress::before {
    background-color: var(--color-warning);
}

.status-reported {
    background-color: #FAF5FF;
    color: #6B46C1;
}
.status-reported::before {
    background-color: #805AD5;
}

.status-resolved {
    background-color: #F0FFF4;
    color: #276749;
}
.status-resolved::before {
    background-color: var(--color-success);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer__grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer__heading {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer__about p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer__logo {
    max-width: 180px;
    height: auto;
    margin-top: 8px;
    opacity: 0.85;
}

.footer__join-btn {
    display: inline-block;
    margin-top: 12px;
    background: #0087DC;
    color: #fff;
    border: none;
    font-size: 0.82rem;
}

.footer__links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color var(--transition), padding-left var(--transition);
}

.footer__links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer__contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.footer__imprint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   14. Utility Classes
   -------------------------------------------------------------------------- */
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.pt-1 { padding-top: 8px; }
.pt-2 { padding-top: 16px; }
.pt-3 { padding-top: 24px; }
.pt-4 { padding-top: 32px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    visibility: hidden;
}

/* --------------------------------------------------------------------------
   15. Animations
   -------------------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .slide-up,
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* --------------------------------------------------------------------------
   16. Cookie Consent Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 18px 0;
    z-index: 9000;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner .container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

@media (min-width: 768px) {
    .cookie-banner .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.cookie-banner p {
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner .btn {
    padding: 8px 22px;
    font-size: 0.85rem;
}

/* Cookie Consent - Enhanced */
.cookie-essential-only {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 8px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.cookie-essential-only:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: #fff;
}

.cookie-settings-link {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.cookie-settings-link:hover { color: #fff; }

/* Cookie Settings Modal */
.cookie-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cookie-modal-overlay.active { display: flex; }

.cookie-modal {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.cookie-modal__header h2 { font-size: 1.2rem; margin: 0; color: var(--color-heading); }

.cookie-modal__close {
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    color: var(--color-muted); padding: 0; line-height: 1;
}

.cookie-modal__close:hover { color: var(--color-text); }
.cookie-modal__body { padding: 24px; }

.cookie-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.cookie-category:last-child { border-bottom: none; }
.cookie-category__info h3 { font-size: 0.95rem; margin: 0 0 4px; color: var(--color-heading); }
.cookie-category__info p { font-size: 0.85rem; color: var(--color-muted); margin: 0; line-height: 1.4; }
.cookie-category__toggle { flex-shrink: 0; text-align: center; }
.cookie-category__status { display: block; font-size: 0.7rem; color: var(--color-muted); margin-top: 4px; }

/* Toggle Switch */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }

.toggle__slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--color-muted);
    border-radius: 24px;
    transition: background-color var(--transition);
}

.toggle__slider::before {
    content: ''; position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform var(--transition);
}

.toggle input:checked + .toggle__slider { background-color: var(--color-accent); }
.toggle input:checked + .toggle__slider::before { transform: translateX(20px); }
.toggle input:disabled + .toggle__slider { opacity: 0.5; cursor: not-allowed; }

.cookie-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    text-align: right;
}

/* Footer Cookie Settings Link */
.footer__cookie-link {
    background: none; border: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem; cursor: pointer;
    padding: 0; font-family: inherit;
    text-align: left; display: block;
    transition: color var(--transition);
}

.footer__cookie-link:hover { color: #fff; }

/* --------------------------------------------------------------------------
   17. QR Landing Page
   -------------------------------------------------------------------------- */
.qr-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
}

.qr-page h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}

.qr-page p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 400px;
}

.qr-page__links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 340px;
}

.qr-page__links .btn {
    padding: 16px 24px;
    font-size: 1.05rem;
    width: 100%;
    border-radius: var(--radius-lg);
}

.qr-page__links .btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.qr-page__links .btn-primary:hover {
    background-color: #3A7FC8;
    border-color: #3A7FC8;
}

/* --------------------------------------------------------------------------
   18. Responsive Breakpoints - Tablet & Desktop Tweaks
   -------------------------------------------------------------------------- */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        padding: 0 24px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .section {
        padding: 100px 0;
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 16px;
    }
}

/* --------------------------------------------------------------------------
   19. Page Header Banner
   -------------------------------------------------------------------------- */
.page-header {
    background-color: var(--color-primary);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 95, 0.95) 0%,
        rgba(43, 90, 143, 0.85) 100%
    );
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }
    .page-header {
        padding: 140px 0 70px;
    }
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   20. Issue Sections
   -------------------------------------------------------------------------- */
.issue-block {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .issue-block {
        padding: 80px 0;
    }
}

.issue-block--alt {
    background-color: var(--color-bg-alt);
}

.issue-block__tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    background-color: var(--color-accent-light);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.issue-block h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .issue-block h2 {
        font-size: 2rem;
    }
}

.issue-block h3 {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    margin-top: 28px;
}

.issue-block p {
    max-width: 800px;
    line-height: 1.8;
}

.issue-block ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
    max-width: 800px;
}

.issue-block ul li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   21. Blog Grid
   -------------------------------------------------------------------------- */
.blog-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-loading,
.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-accent);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.blog-back-link:hover {
    color: var(--color-primary);
}

/* About page photo */
.about-photo {
    text-align: center;
}

.about-photo img {
    max-width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .about-photo {
        position: sticky;
        top: 100px;
    }
}

/* Election countdown banner */
.election-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
}

.election-banner strong {
    font-size: 1.4rem;
    font-weight: 700;
}

.election-banner__date {
    opacity: 0.7;
    font-size: 0.85rem;
    margin-left: 4px;
}

.election-banner--vote {
    background: #E53E3E;
    font-size: 1.15rem;
    animation: pulse-vote 1.5s ease-in-out infinite;
}

@keyframes pulse-vote {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* --------------------------------------------------------------------------
   22. CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background-color: var(--color-primary);
    padding: 60px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 80px 0;
    }
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   23. Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .navbar,
    .cookie-banner,
    .mobile-menu,
    .mobile-overlay,
    .footer {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero,
    .page-header {
        min-height: auto;
        padding: 40px 0;
        background: none !important;
    }

    .hero::before,
    .page-header::before {
        display: none;
    }

    .hero__content h1,
    .hero__content p,
    .page-header h1,
    .page-header p {
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .card, .blog-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
