:root {
    --primary-color: #007229;
    --primary-dark: #00591E;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f5f5f5;
}

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

body, html {
    height: 100%;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: url('background.jpeg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    position: relative;
    scroll-behavior: smooth;
    /* Base background position */
    background-position: center center;
}

/* Navigation 1 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    height: 80px;
    margin-right: 1rem;
}

.logo-link {
    display: block;
    height: 100%;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.nav-logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.language-selector select {
    padding: 0.5rem;
    border: 1px solid var(--text-light);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem 6rem 2rem;
    position: relative;
    margin-top: 80px;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    animation: fadeIn 1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 3rem 0;
}

.hero-image {
    max-width: 80%;
    max-height: calc(100vh - 280px);
    height: auto;
    width: auto;
    object-fit: contain;
    margin: 0 0 3rem 0;
}

/* About Section */
.about {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 2rem;
}

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

.about-content {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

/* Main content adjustment */
main {
    padding-bottom: 120px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* .footer-left, .footer-right { */
/*     min-width: 150px; Removed minimum width */
/* } */

.footer-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.footer-button.register {
    background-color: var(--text-light);
    color: var(--primary-color);
    border: 1px solid var(--text-light);
}

.footer-button.program {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.footer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Countdown */
.countdown-container {
    text-align: center;
    flex-grow: 1;
    margin: 0 1rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span {
    font-size: 1.5rem;
    font-weight: bold;
}

.countdown-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Organizers */
.organizers {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.organizers::-webkit-scrollbar {
    display: none;
}

.organizers a {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.organizers a:hover {
    opacity: 0.8;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    body, html {
        /* Mobile-specific background position */
        background-position: center top;
    }

    /* Navigation 1 */
    .nav-logo {
        height: 60px;
    }

    /* Hero Section adjustments for mobile */
    .hero {
        padding: 0 2rem 2rem 2rem;
        margin-top: 60px;
    }

    .hero-content {
        padding: 0 0 1rem 0;
    }

    .hero-image {
        margin: 0 0 1rem 0;
        max-width: 95%;
    }

    .language-selector select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    /* Main Content */
    main {
        padding-bottom: 150px; /* Adjusted for slightly smaller footer */
    }

    /* Footer */
    footer {
        padding: 0.6rem; /* Reduced overall footer padding */
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem; /* Reduced gap between stacked items */
    }

    .footer-left, .footer-right {
        width: 100%;
    }

    .footer-button {
        display: block;
        width: 100%;
        padding: 0.5rem 1rem; /* Slightly reduced button padding */
        font-size: 0.85rem; /* Slightly reduced button font size */
    }

    .countdown {
        gap: 0.6rem; /* Reduced gap */
        margin-bottom: 0.25rem; /* Reduced margin */
    }

    .countdown-item span {
        font-size: 1rem; /* Reduced countdown number size */
    }

    .countdown-item .label {
        font-size: 0.5rem; /* Reduced countdown label size */
    }

    .organizers {
        font-size: 0.6rem; /* Further reduced organizers font size */
        margin-top: 0.25rem; /* Reduced margin */
    }

    .separator {
        margin: 0 0.3rem;
    }
}

/* Error Messages */
.error-message {
    background-color: rgba(255, 235, 235, 0.9);
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    color: #d32f2f;
}

.error-message h2 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.error-message p {
    margin: 0.5rem 0;
}

/* About Content Markdown Styles */
.about-content h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

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

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-content ul, .about-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

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

.about-content em {
    color: var(--primary-dark);
    font-style: italic;
}

.about-content strong {
    font-weight: 600;
    color: var(--primary-dark);
}

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