/* Global CSS - Easy to modify */
:root {
    --primary-color: #F11B45;
    --secondary-color: #2d8659;
    --accent-green: #28a745;
    --success-color: #28a745;
    --error-color: #e74c3c;
    --text-color: #333;
    --background-color: #f8f9fa;
    --border-color: #ddd;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

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

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

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

header .container {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
}

.logo {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0;
    letter-spacing: -0.5px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.language-dropdown-btn:hover {
    opacity: 0.8;
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 5px;
}

.language-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
    z-index: 1000;
}

.language-dropdown:hover .language-dropdown-content {
    display: block;
}

/* Keep dropdown open when toggled via JS */
.language-dropdown.open .language-dropdown-content {
    display: block;
}

.language-dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.language-dropdown-content a:hover {
    background-color: #f1f1f1;
}

nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 4px;
    transition: all 0.3s;
    font-weight: 400;
    font-size: 1em;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

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

nav a:hover {
    opacity: 0.8;
}

nav a.active {
    font-weight: 600;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 0px 0;
}

section {
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* Hero Section */
body > main > .hero {
    width: 100%;
    max-width: 100%;
    position: relative;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 40px;
    padding: 0;
    display: block;
    overflow: hidden;
}

/* Association Section */
.association-section {
    margin: 40px 0;
}

.association-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.association-text h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
}

.association-text p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

.association-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.association-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.association-image:hover img {
    transform: scale(1.02);
}

/* Info Section */
body > .container > .info-section {
    margin-top: 40px;
}

.info-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-section p {
    font-size: 1.1em;
    line-height: 1.8;
}

/* Agenda Section */
.agenda-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.agenda-section h1 {
    margin-bottom: 30px;
}

.agenda-info {
    background: linear-gradient(135deg, #F11B45, #28a745);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.agenda-info p {
    margin: 10px 0;
    font-size: 1.1em;
}

.agenda-subtitle {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.4em;
    font-weight: 700;
    margin: -20px 0 30px 0;
}

.agenda-item {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.agenda-item:last-child {
    border-bottom: none;
}

.agenda-time {
    min-width: 120px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1em;
}

.agenda-content {
    flex: 1;
}

.agenda-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

.agenda-content p {
    margin: 5px 0;
    color: #555;
    line-height: 1.6;
}

.agenda-content .speakers {
    font-style: italic;
}

.agenda-content .moderator {
    font-weight: 600;
    color: var(--accent-green);
}

.session-divider {
    margin: 40px 0 30px 0;
    text-align: center;
}

.session-divider h2 {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-size: 1.3em;
    margin: 0;
}

.panel-item .agenda-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-green);
}

/* Form Section */
.form-section {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-section h1 {
    margin-bottom: 15px;
}

.form-description {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
}

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

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.register-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    flex-wrap: nowrap;
}

.register-logos .logo-item {
    flex: 0 0 auto;
}

.success-message {
    background-color: var(--success-color);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-message {
    background-color: var(--error-color);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--accent-green);
}

.contact-item h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--accent-green);
}

.contact-item p {
    line-height: 1.8;
}

.contact-item p a {
    color: var(--accent-green);
    text-decoration: none;
}

.contact-item p a:hover {
    text-decoration: underline;
}

/* Venue Gallery */
.venue-gallery {
    margin-top: 40px;
}

.venue-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.venue-image-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

.venue-image-item:hover {
    transform: translateY(-5px);
}

.venue-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 250px;
    max-height: 400px;
}

/* Sponsors Section */
.sponsors-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sponsors-section h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.sponsors-group {
    margin-bottom: 60px;
}

.group-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent-green);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.logo-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.logo-placeholder:hover {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo-item img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-item:hover img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 20px 0;
    }
    
    header .container {
        gap: 15px;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .logo {
        font-size: 1.8em;
    }
    
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        z-index: 1000;
        visibility: hidden;
    }
    
    .header-nav.active {
        max-height: 500px;
        overflow-y: auto;
        opacity: 1;
        padding: 20px;
        visibility: visible;
    }
    
    .language-dropdown {
        order: 2;
        align-self: stretch;
        margin-bottom: 15px;
    }
    
    nav {
        width: 100%;
        flex-direction: column;
        gap: 0;
        order: 1;
        margin-bottom: 15px;
    }
    
    nav a {
        width: 100%;
        padding: 12px 0;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9em;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .register-logos {
        gap: 15px;
        margin-top: 30px;
        flex-wrap: nowrap;
    }
    
    .register-logos .logo-item {
        min-height: auto;
        padding: 15px;
    }
    
    .register-logos .logo-item img {
        max-height: 80px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .logo-item {
        min-height: 120px;
    }
    
    .logo-placeholder {
        height: 100px;
        font-size: 0.9em;
    }
    
    .venue-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .venue-gallery {
        margin-top: 30px;
    }
    
    .association-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .association-text h2 {
        font-size: 1.6em;
    }
    
    .agenda-section {
        padding: 20px;
    }
    
    .agenda-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .agenda-time {
        min-width: auto;
        font-size: 0.9em;
    }
    
    .agenda-info {
        padding: 20px;
        font-size: 0.95em;
    }
    
    .agenda-info p {
        font-size: 1em;
    }
    
    .session-divider h2 {
        padding: 10px 20px;
        font-size: 1.1em;
    }
    
    .panel-item .agenda-content {
        padding: 15px;
    }
}
