:root {
    --primary-green: #1a4d2e;
    --light-green: #4a7c59;
    --pale-green: #8fbc8f;
    --cream: #f5f0dc;
    --orange: #e07830;
    --dark-text: #1a4d2e;
    --light-bg: #faf8f0;
    --intro-offset: 100px;   /* push video down by this amount */
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--light-bg);
}

main {
    display: block;
}

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

/* Header */
.site-header {
    background: var(--primary-green);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/headerline.png') repeat-x center;
    /* background-color: rgba(255, 255, 255, 0.644); */
    background-size: auto, auto 100%;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 80px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-text);
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-info {
    text-align: right;
}

.event-info .dates {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: rgb(7, 65, 7);
}

.event-info .location {
    font-size: 1.0rem;
    font-weight: 600;
    color: rgb(7, 65, 7);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navigation */
.main-nav {
    background: var(--primary-green);
    border-top: 3px solid var(--orange);
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-item a {
    display: block;
    padding: 12px 22px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-item a:hover,
.nav-item.active a {
    background: var(--light-green);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--light-green);
    min-width: 180px;
    list-style: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown li a:hover {
    background: var(--primary-green);
}

/* Header Line Decoration */
.header-line {
    width: 100%;
    height: 12px;
    background: url('../images/headerline.png') repeat-x center;
    background-size: auto 100%;
    margin: 0;
    padding: 0;
}

/* Video Intro Overlay */
.intro-overlay {
    position: fixed;
    top: var(--header-height, 130px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--intro-offset, 0px);
    transition: opacity 0.6s ease;
}

.intro-overlay video {
    width: 100%;
    /* height: 100%;
    object-fit: contain; */
    height: auto;
    background: #000;
}

.intro-skip {
    position: absolute;
    bottom: 32px;
    right: 32px;
    background: none;
    border: 1px solid rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.7);
    padding: 8px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.intro-skip:hover {
    color: white;
    border-color: white;
}

/* Legacy hero (kept for reference) */
.hero-banner {
    width: 100%;
    background: var(--cream);
    margin: 0;
    padding: 0;
}

.hero-banner img {
    width: 100%;
    display: block;
}

.event-cta {
    background: var(--cream);
    padding: 30px 0;
    text-align: center;
}

.event-cta .event-date {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.event-cta .event-date strong {
    color: var(--orange);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    margin: 5px;
    transition: transform 0.3s, background 0.3s;
}

.btn:hover {
    background: #c56520;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

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

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* Sections */
section {
    padding: 60px 0;
}

section:nth-child(odd) {
    background: white;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 40px;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.topic-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--orange);
}

.topic-card h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

/* Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.highlight-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-bottom: 4px solid var(--light-green);
}

.highlight-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.highlight-item h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

/* News Section */
.news-section {
    background: var(--cream);
}

.news-preview {
    max-width: 800px;
    margin: 0 auto 30px;
}

.news-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--orange);
    margin-bottom: 20px;
}

.news-item .news-date {
    color: var(--light-green);
    font-size: 0.9rem;
}

.news-item h3 {
    color: var(--primary-green);
    margin: 10px 0;
}

.news-link {
    text-align: center;
}

.news-item a {
    color: var(--orange);
}

.news-list .news-item h3 a {
    color: var(--primary-green);
    text-decoration: none;
}

.news-list .news-item h3 a:hover {
    color: var(--orange);
}

/* Page Content */
.page-content {
    padding: 60px 0;
    min-height: 60vh;
    background: white;
    position: relative;
}

.page-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: url('../images/carimbo_wcsmo17.png') center no-repeat;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.page-content .container {
    position: relative;
    z-index: 1;
}

.page-content h1 {
    color: var(--primary-green);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--orange);
}

.page-content h2 {
    color: var(--primary-green);
    margin: 40px 0 20px;
    text-align: left;
}

.page-content h3 {
    color: var(--light-green);
    margin: 25px 0 15px;
}

.page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    margin: 15px 0 15px 30px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content a {
    color: var(--orange);
}

.page-content a.btn {
    color: white;
    text-decoration: none;
    display: inline-block;
    margin: 20px 0;
}

.page-content a.btn:hover {
    color: white;
}

.page-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

.page-content strong {
    color: var(--primary-green);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.page-content th, .page-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.page-content th {
    background: var(--primary-green);
    color: white;
}

.page-content tr:hover {
    background: var(--light-bg);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 30px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-green);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.contact-form .btn {
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background: var(--primary-green);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info a,
.footer-contact a {
    color: var(--orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-edition {
        font-size: 0.9rem;
    }

    .hero-date {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

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

    .nav-item a {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .event-info {
        display: none;
    }

    .hero {
        min-height: 300px;
    }

    .hero-overlay {
        padding: 30px;
        margin: 20px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
