:root {
    --color-primary: #004bb0;
    --color-accent: #e75f0b;
    --color-white: #fff;
    --color-text: #333;
    --color-background: #f5f5f5;
    --spacing-unit: 1rem;
    --border-radius: 4px;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header */
.header-top {
    background-color: var(--color-primary);
    padding: 1rem 0;
}

nav {
    background-color: var(--color-primary);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-accent);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-white);
}

.nav-link.active {
    color: var(--color-white);
    border-bottom: 2px solid var(--color-white);
}

/* Accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 400px;
    height: 70vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: url('../img/ban.jpg') no-repeat center center;
    background-size: cover;
}

@media screen and (max-width: 768px) {
    .hero-section {
        background-image: url('../img/VDA767.png');
        background-size: cover;
    }
}

@media screen and (max-width: 360px) {
    .hero-section {
        background-image: url('../img/VDA.png');
        background-size: cover;
    }
}

@media screen and (max-width: 440px) {
    .hero-section {
        background-image: url('../img/VDA.png');
        background-size: cover;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero-section {
        background-image: url('../img/VDA1024.png');
        background-size: cover;
    }
}

.hero-content {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 600px;
    text-align: right;
    color: white;
    padding: 2rem;
}

.script-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.signature {
    font-size: 2.2rem;
    margin-top: 1.5rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    min-height: 70vh;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);
    background-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus {
    background-color: #d45509;
    outline: none;
}

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

/* Sections */
.section {
    margin-bottom: calc(var(--spacing-unit) * 3);
    background-color: var(--color-white);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background-color: var(--color-primary);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

@media screen and (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-card h2 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }
}

@media screen and (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Programme Section */
.programme-section {
    padding: 4rem 0;
    background-color: #f5f7fa;
}

.section-title {
    text-align: center;
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.programme-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.programme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.programme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.programme-card:hover::before {
    transform: scaleX(1);
}

.programme-card i {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--color-accent), #ff8f50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.programme-card h2 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.programme-details ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.programme-details li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: #2d3748;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 500;
}

.programme-item-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.programme-item-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.programme-details li::before {
    content: "→";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
    transform: translateY(-1px);
}

/* Agenda Hero */
.agenda-hero {
    background-color: var(--color-primary);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.agenda-hero .section-title {
    color: white;
    margin-bottom: 0.5rem;
}

.agenda-hero .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* Programme Hero */
.programme-hero {
    background-color: var(--color-primary);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.programme-hero .section-title {
    color: white;
    margin-bottom: 0.5rem;
}

.programme-hero .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* Programme Introduction */
.programme-intro {
    margin: 3rem 0;
    padding: 0 1rem;
}

.intro-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--color-primary);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 75, 176, 0.1);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.intro-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 15px 15px 0 0;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.intro-content p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--color-primary);
}

.intro-content p:first-child::before {
    content: "💡 ";
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.intro-content p:last-child::before {
    content: "🤝 ";
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Agenda Filters */
.agenda-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--color-primary);
    color: white;
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: white;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-primary);
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-date {
    width: 100px;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

.timeline-date .date {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.timeline-date .month,
.timeline-date .year {
    font-size: 0.9rem;
    color: #666;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    margin-left: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px 2px 4px rgba(0,0,0,0.05);
}

.event-time {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
}

.event-tag {
    padding: 0.25rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.event-tag.reunion {
    background-color: #e3f2fd;
    color: #1976d2;
}

.event-tag.evenement {
    background-color: #fce4ec;
    color: #c2185b;
}

.event-tag.permanence {
    background-color: #e8f5e9;
    color: #388e3c;
}

.timeline-content h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    margin-bottom: 1rem;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.event-location i {
    color: var(--color-accent);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-date {
        width: 60px;
        padding: 0.5rem;
    }

    .timeline-date .date {
        font-size: 1.4rem;
    }

    .timeline-date .month,
    .timeline-date .year {
        font-size: 0.8rem;
    }

    .timeline-content {
        margin-left: 1rem;
    }

    .agenda-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .news-image {
        height: 180px;
    }
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    margin-top: 4rem;
}

.footer-main {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 0.8;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--color-white);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

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

.legal-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.legal-links a:hover {
    opacity: 1;
}

/* Media Queries */
@media (max-width: 992px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .logo {
        text-align: center;
        font-size: 1.5rem;
    }

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        gap: 1rem;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 0.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-info li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .programme-grid {
        grid-template-columns: 1fr;
    }
}

/* Citizen Hero */
.citizen-hero {
    background-color: var(--color-primary);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.citizen-hero .section-title {
    color: white;
    margin-bottom: 0.5rem;
}

.citizen-hero .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* Citizen Grid */
.citizen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

/* Ideas Box */
.ideas-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ideas-box h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.ideas-list {
    margin-top: 2rem;
}

.idea-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-accent);
}

.idea-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.author {
    color: var(--color-primary);
    font-weight: 600;
}

.idea-card h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.idea-card p {
    color: #4a5568;
    line-height: 1.5;
}

/* Idea Form */
.idea-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.idea-form h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 75, 176, 0.1);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #d45509;
}

/* Responsive Citizen Space */
@media (max-width: 992px) {
    .citizen-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ideas-box,
    .idea-form {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .citizen-hero {
        padding: 3rem 0 1.5rem;
    }

    .citizen-hero .section-subtitle {
        font-size: 1rem;
    }

    .ideas-box h2,
    .idea-form h2 {
        font-size: 1.5rem;
    }

    .idea-card {
        padding: 1rem;
    }
}

/* News Hero */
.news-hero {
    background-color: var(--color-primary);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.news-hero .section-title {
    color: white;
    margin-bottom: 0.5rem;
}

.news-hero .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* News Filters */
.news-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.news-filters .filter-btn {
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-filters .filter-btn:hover {
    background-color: var(--color-primary);
    color: white;
}

.news-filters .filter-btn.active {
    background-color: var(--color-primary);
    color: white;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* News Card */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1;
}

.news-tag.environnement {
    background-color: #e8f5e9;
    color: #388e3c;
}

.news-tag.culture {
    background-color: #e3f2fd;
    color: #1976d2;
}

.news-tag.social {
    background-color: #fce4ec;
    color: #c2185b;
}

.news-tag.sport {
    background-color: #fff3e0;
    color: #f57c00;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.news-date i {
    margin-right: 0.5rem;
}

.news-content h2 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #d45509;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Responsive News */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 3rem 0 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-filters {
        gap: 0.5rem;
    }

    .news-filters .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .news-image {
        height: 180px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Article Detail */
.article-detail {
    margin-bottom: 4rem;
}

.article-hero {
    position: relative;
    height: 500px;
    margin-bottom: 3rem;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}

.article-header {
    position: relative;
    color: white;
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.article-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
}

.article-date i,
.article-author i {
    margin-right: 0.5rem;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.article-intro {
    font-size: 1.25rem;
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid var(--color-accent);
    border-radius: 5px;
}

.article-content h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.article-content p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-image {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-image figcaption {
    padding: 1rem;
    background: #f8f9fa;
    color: #666;
    font-style: italic;
    text-align: center;
}

.article-content ul {
    color: #4a5568;
    line-height: 1.8;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content ul li {
    margin-bottom: 0.5rem;
}

blockquote {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    font-style: italic;
    color: #2d3748;
    position: relative;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 1rem;
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.2;
    line-height: 1;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.article-info-box {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-info-box h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.article-info-box ul {
    list-style: none;
    padding: 0;
}

.article-info-box li {
    margin-bottom: 0.75rem;
}

/* Share Buttons */
.article-share {
    margin: 3rem 0;
    text-align: center;
}

.article-share h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-button.facebook {
    background-color: #1877f2;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.linkedin {
    background-color: #0077b5;
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.related-articles h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Responsive Article */
@media (max-width: 992px) {
    .article-hero {
        height: 400px;
    }

    .article-header {
        padding-top: 200px;
    }

    .article-title {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {
    .article-hero {
        height: 300px;
    }

    .article-header {
        padding-top: 150px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .article-intro {
        font-size: 1.1rem;
        padding: 1rem;
    }

    blockquote {
        padding: 1.5rem;
    }
}

/* Category and Tag Pages */
.category-hero,
.tag-hero,
.search-hero {
    background: var(--color-primary);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.category-title,
.tag-title,
.search-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-description,
.tag-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

.category-meta,
.tag-meta,
.search-meta {
    font-size: 1.1rem;
    opacity: 0.8;
}

.article-count {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-top: 1rem;
}

/* Search Page */
.search-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1.1rem;
}

.search-input-group button {
    padding: 0 1.5rem;
    background: var(--color-accent);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-input-group button:hover {
    background: var(--color-accent-dark);
}

.search-query {
    margin-bottom: 0.5rem;
}

.result-count {
    font-style: italic;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 0;
    color: #666;
}

.no-results i {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.no-results h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.no-results p {
    margin-bottom: 2rem;
}

.search-suggestions {
    max-width: 500px;
    margin: 2rem auto;
    text-align: left;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.search-suggestions h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.search-suggestions ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.search-suggestions li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .category-hero,
    .tag-hero,
    .search-hero {
        padding: 3rem 0;
    }

    .category-title,
    .tag-title,
    .search-title {
        font-size: 2rem;
    }

    .category-description,
    .tag-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .search-input-group input {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
}

/* Article Detail Styles */
.article-detail {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.article-header {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-meta {
    display: flex;
    gap: calc(var(--spacing-unit));
    flex-wrap: wrap;
    margin-bottom: var(--spacing-unit);
    color: #666;
    font-size: 0.9rem;
}

.article-meta i {
    color: var(--color-primary);
    margin-right: calc(var(--spacing-unit) * 0.5);
}

.article-date,
.article-category,
.article-author {
    display: flex;
    align-items: center;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.article-featured-image {
    margin: calc(var(--spacing-unit) * 2) 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-width: 100%;
    position: relative;
    aspect-ratio: 16/9;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-lead {
    font-size: 1.2rem;
    color: #444;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-quote {
    margin: calc(var(--spacing-unit) * 2) 0;
    padding: calc(var(--spacing-unit) * 2);
    background-color: var(--color-background);
    border-left: 4px solid var(--color-primary);
    font-style: italic;
}

.article-quote cite {
    display: block;
    margin-top: var(--spacing-unit);
    color: #666;
    font-size: 0.9rem;
}

.article-content h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
}

.article-content ul {
    list-style-type: disc;
    margin: var(--spacing-unit) 0;
    padding-left: calc(var(--spacing-unit) * 2);
}

.article-content ul li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.article-footer {
    margin-top: calc(var(--spacing-unit) * 3);
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-unit);
}

.article-tags {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 0.5);
}

.article-tags i {
    color: var(--color-primary);
}

.tag {
    background-color: var(--color-background);
    padding: calc(var(--spacing-unit) * 0.25) calc(var(--spacing-unit) * 0.75);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: #666;
}

.article-share {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit));
}

.share-link {
    color: #666;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.article-navigation {
    margin-top: calc(var(--spacing-unit) * 3);
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-unit);
}

.prev-article,
.next-article {
    flex: 1;
}

.next-article {
    text-align: right;
}

/* Responsive Design for Article */
@media (max-width: 768px) {
    .article-detail {
        padding: var(--spacing-unit);
    }

    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 0.5);
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-navigation {
        flex-direction: column;
        gap: calc(var(--spacing-unit));
    }

    .next-article {
        text-align: left;
    }
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-section {
        height: 400px;
    }

    .hero-content {
        right: 0;
        left: 0;
        text-align: center;
        padding: 1rem;
    }

    .script-text {
        font-size: 1.4rem;
    }

    .signature {
        font-size: 1.8rem;
    }
}

/* Icons */
.news-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
}

.program-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z'/%3E%3C/svg%3E");
}

.citizen-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
}

/* Navigation mobile */
@media screen and (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        z-index: 1000;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-primary);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        z-index: 999;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Event Form */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.event-form .form-group {
    margin-bottom: 1.5rem;
}

.event-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 600;
}

.event-form input,
.event-form textarea,
.event-form select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.event-form textarea {
    min-height: 100px;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Event Detail */
.event-detail {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-header {
    margin-bottom: 2rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.event-meta i {
    color: var(--color-primary);
}

.event-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.event-content {
    line-height: 1.6;
    color: var(--color-text);
}

.event-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.back-link {
    margin-top: 2rem;
}

/* Delete Confirmation */
.delete-confirmation {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.confirmation-box h1 {
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.event-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    text-align: left;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

@media screen and (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    h2 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    .programme-hero {
        padding: 1.5rem 0;
    }
    .programme-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    .programme-card {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    .programme-card i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    .programme-details ul {
        font-size: 0.9rem;
    }
    .programme-details li {
        margin-bottom: 0.3rem;
        padding-left: 1.2rem;
    }
    .programme-intro {
        margin: 2rem 0;
        padding: 0 0.5rem;
    }
    .intro-content {
        padding: 1.5rem;
        border-radius: 10px;
    }
    .intro-content p {
        font-size: 1rem;
        text-align: left;
    }
    .nav-links {
        gap: 0.5rem;
    }
    .nav-link {
        padding: 0.3rem;
        font-size: 0.9rem;
    }
    .hero-content {
        padding: 1rem;
        right: 5%;
    }
    .script-text {
        font-size: 1.4rem;
    }
    .signature {
        font-size: 1.8rem;
    }
}
