:root {
    --primary: #15803d;
    /* Green - Agriculture */
    --primary-dark: #14532d;
    --secondary: #0f172a;
    /* Dark Slate - Tech */
    --accent: #d97706;
    /* Amber - Earth/Harvest */
    --background: #fafaf9;
    /* Stone - Natural warmth */
    --surface: #ffffff;
    --text: #1c1917;
    --text-light: #57534e;
    --border: #e7e5e4;
    --success: #15803d;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Merriweather', serif;
    /* Classic/Agriculture feel */
    color: var(--secondary);
    margin: 0;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s;
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #14532d 0%, #0f172a 100%);
    /* Green to Slate */
    color: white;
    padding: 6rem 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 4rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    color: #cbd5e1;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--border);
    transform: translateY(-2px);
}

/* Sections */
section {
    margin-bottom: 5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Participants Grid */
.grid-partners {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.partner-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.attendees {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attendees li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.attendees li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.attendees li {
    padding-left: 1em;
}

/* Schedule */
.day-schedule {
    margin-bottom: 3rem;
}

.day-header {
    background: var(--surface);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.day-header h3 {
    font-size: 1.5rem;
}

.day-header span {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.timeline {
    position: relative;
    padding-left: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 5px;
    /* Adjust based on timeline line */
    top: 1.5em;
    /* approximate center of first line */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--primary);
    z-index: 1;
}

.timeline-item.break .content {
    background-color: #fffbeb;
    /* Amber 50 */
    border-color: #fcd34d;
    /* Amber 300 */
}

.time {
    min-width: 130px;
    font-weight: 600;
    color: var(--text-light);
    padding-top: 1.25rem;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.content {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-grow: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.location {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location::before {
    content: '📍';
    font-size: 0.9em;
}

.link-btn {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.timeline-item.social .content {
    background: #fdf4ff;
    border-color: #f5d0fe;
}

.timeline-item.social .content h4 {
    color: #86198f;
}

.timeline-item.transport .content {
    background: #f0f9ff;
    border-color: #bae6fd;
    text-decoration: none;
    /* Ensure no underline for the card content container */
    color: inherit;
    display: block;
    /* Make it a block level element */
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.timeline-item.transport .content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    cursor: pointer;
}

.timeline-item.transport .content h4 {
    color: #0369a1;
}

/* CTA Hint for Transport Cards */
.cta-hint {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.timeline-item.transport .content:hover .cta-hint {
    text-decoration: underline;
}


/* Locations Links Grid */
.links-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.links-grid-equal .card-link {
    flex: 1 1 0;
    min-width: 200px;
    max-width: calc(50% - 0.75rem);
    justify-content: center;
}

.links-grid-equal {
    align-items: stretch;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    padding: 1.25rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.card-link:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-link .icon {
    font-size: 1.5rem;
}

.card-link.large {
    width: 100%;
    max-width: 500px;
    justify-content: center;
    text-align: left;
}

.card-link .link-content {
    display: flex;
    flex-direction: column;
}

.card-link .title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--secondary);
}

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

.card-link .subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.organizer-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}


/* Footer */
footer {
    background: var(--secondary);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .timeline-item {
        flex-direction: column;
    }

    .time {
        margin-bottom: 0.5rem;
        padding-left: 0.5rem;
    }

    .timeline-item::before {
        top: 0.5rem;
    }
}

/* DB Real-time Status */
.db-status {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.train-icon {
    display: inline-block;
}

/* Flip emoji to point right (if it points left by default like 🚄) */
.train-icon.right {
    transform: scaleX(-1);
}

/* DB Real-time Status */
.db-status {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.db-status.loading {
    color: var(--text-light);
    font-style: italic;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.status-badge.on-time {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.delayed {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-detail {
    color: var(--text);
    font-weight: 500;
}

.db-status.loading {
    color: var(--text-light);
    font-style: italic;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.status-badge.on-time {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.delayed {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-detail {
    color: var(--text);
    font-weight: 500;
}