/* Basic Reset & Fonts */
body, h1, h2, h3, p, ul, li, table, form {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #4A4A4A;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* Variables */
:root {
    --primary-blue: #0D2C54;
    --accent-gray: #4A4A4A;
    --light-blue: #5D9CEC;
    --bg-gray: #F4F7F6;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 60px;
    display: block;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

header nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--light-blue);
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gray);
}

.lang-switcher button.active {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Hero Section */
#hero {
    /* Змінено шлях до зображення та додано затемнення */
    background: linear-gradient(rgba(13, 44, 84, 0.85), rgba(13, 44, 84, 0.85)), url('images/hero_bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 6rem 0;
}

/* Додаємо анімацію пульсації для основної кнопки "Взяти участь" */
.cta-button {
    display: inline-block;
    background-color: var(--light-blue);
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Додаємо transform для плавного збільшення */
    border: none;
    cursor: pointer;
    font-size: 1rem;
    
    /* Анімація пульсації */
    animation: pulse 2s infinite; /* Назва анімації, тривалість, безкінечність */
}

.cta-button:hover {
    background-color: #4a81d4;
    transform: scale(1.05); /* Збільшення при наведенні */
    animation: none; /* Зупиняємо пульсацію при наведенні */
}

/* Визначаємо ключові кадри для анімації "pulse" */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(93, 156, 236, 0.7); /* Початковий тінь */
    }
    70% {
        transform: scale(1.02); /* Злегка збільшуємо */
        box-shadow: 0 0 0 10px rgba(93, 156, 236, 0); /* Тінь розсіюється */
    }
    100% {
        transform: scale(1); /* Повертаємо до початкового розміру */
        box-shadow: 0 0 0 0 rgba(93, 156, 236, 0);
    }
}

#hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--light-blue);
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #4a81d4;
}

/* General Section Styling */
.content-section { padding: 4rem 0; }
.page-section { background-color: #fff; }
.gray-bg { background-color: var(--bg-gray); }

.content-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 2.5rem;
    position: relative;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--light-blue);
    margin: 0.5rem auto 0;
}

/* Conferences Section */
.conferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.conference-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Sections Section */
.sections-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.section-item {
    background-color: #fff;
    color: var(--primary-blue);
    padding: 0.8rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-weight: 600;
}

/* Requirements Section */
.requirements-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.requirements-list { list-style: none; }
.requirements-list li {
    padding: 0.8rem 0 0.8rem 2rem;
    border-bottom: 1px solid #eee;
    position: relative;
}
.requirements-list li:last-child { border-bottom: none; }
.requirements-list li::before {
    content: '✓';
    color: var(--light-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pricing-table th, .pricing-table td {
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

.pricing-table thead {
    background-color: var(--primary-blue);
    color: #fff;
}

/* Payment Info */
.payment-info {
    max-width: 800px;
    margin: 2.5rem auto 0;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-left: 4px solid var(--light-blue);
}
.payment-info h3 { color: var(--primary-blue); margin-bottom: 1rem; }
.payment-details-list { list-style: none; padding-left: 0; }
.payment-details-list li { margin-bottom: 0.5rem; }

/* Submit Form */
.submit-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}
.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Archive Section */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.archive-item {
    background-color: #fff;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.contact-info ul {
    list-style: none;
    padding-left: 0;
}

.contact-info li {
    margin-bottom: 0.8rem;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
}

/* Responsive adjustments for contact page */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Conference Detail Page Styles */
.conference-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-blue);
}

.conference-header h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.conference-header h2::after {
    display: none; /* Вимикаємо стандартну лінію під заголовком */
}

.conference-header h3 {
    font-size: 1.5rem;
    color: var(--accent-gray);
    margin-bottom: 1rem;
    font-weight: 600;
}

.conference-header .conference-date {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
}

.conference-content {
    max-width: 900px;
    margin: 0 auto;
}

.conference-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.conference-content h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.topics-list, .dates-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.topics-list li, .dates-list li {
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
    font-size: 1.1rem;
}

.topics-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--light-blue);
    font-weight: bold;
    font-size: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.dates-list strong {
    color: var(--primary-blue);
}

.action-buttons {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}