/* Загальні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #57b1bc;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="120"><text x="10" y="80" font-family="Montserrat, sans-serif" font-size="60" font-weight="900" fill="rgba(255, 255, 255, 0.1)">OPEN KAI</text></svg>');
    background-repeat: repeat;
    background-size: 400px 120px;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
}

/* Навігація */
header {
    background: #f04625;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    transition: color 0.3s, background 0.3s;
}

nav ul li a:hover, nav ul li a.active, nav ul li a[aria-current="page"] {
    color: #57b1bc;
    background: white;
    border-radius: 5px;
}

nav ul li a:focus {
    outline: 2px solid white;
    outline-offset: 2px;
    background: white;
    color: #57b1bc;
    border-radius: 5px;
}

/* Герой секція */
.hero {
    background: url('img/hero-bg.jpg') no-repeat center/cover;
    padding: 4rem 1rem;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-wrapper {
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #f04625;
    color: white;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.3rem;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e03e1f, #f04625);
}

.event-info {
    font-size: 1.4rem;
    font-weight: 700;
    background-color: rgba(58, 138, 148, 0.8);
    padding: 1rem;
    border: 2px solid #ffffff;
    border-radius: 10px;
    display: inline-block;
}

.event-info p {
    margin: 0.5rem 0;
}

.event-date {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.event-location a {
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.3s;
}

.event-location a:hover {
    color: #f04625;
}

/* Секція про подію */
.about {
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 1.5rem;
    background-color: #ffffff;
    border: 2px solid #f04625;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.about h2 {
    color: white;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background-color: #3a8a94;
    padding: 0.5rem;
    border-radius: 5px;
}

.about a {
    color: #80c7d0;
    text-decoration: none;
    font-weight: 700;
}

/* Секція тизер */
.teaser {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
    text-align: center;
}

.teaser h2 {
    color: white;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background-color: #3a8a94;
    padding: 0.5rem;
    border-radius: 5px;
}

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

.teaser-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border: 2px solid #f04625;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.teaser-card:hover {
    transform: translateY(-5px);
}

.teaser-card h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background-color: #3a8a94;
    padding: 0.5rem;
    border-radius: 5px;
}

.teaser-card p {
    color: #333;
    font-size: 1rem;
    flex-grow: 1;
}

.teaser-button {
    display: inline-block;
    background-color: #f04625;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: auto;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.teaser-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e03e1f, #f04625);
}

/* Спікери */
.speakers {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
    text-align: center;
}

.speakers h2 {
    color: white;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background-color: #3a8a94;
    padding: 0.5rem;
    border-radius: 5px;
}

.speaker-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.speaker-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1100px;
    justify-content: center;
}

.speaker-image {
    display: block;
    transition: transform 0.3s;
    width: 100%;
    max-width: 1000px;
    border: 2px solid #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

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

.speaker-image img {
    width: 100%;
    max-width: 1000px;
    height: 200px;
    object-fit: contain;
    display: block;
}

.speaker-time {
    background-color: #3a8a94;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 10px;
    width: 100px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

/* Партнери */
.partners {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
    text-align: center;
}

.partners h2 {
    color: white;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background-color: #3a8a94;
    padding: 0.5rem;
    border-radius: 5px;
}

.partner-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.partner-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.partner-row:nth-child(1) {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    max-width: 100%;
}

.partner-row:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    max-width: 66.67%;
    margin: 0 auto;
}

.partner-card {
    position: relative;
    text-align: center;
    background-color: #ffffff;
    padding: 1.5rem;
    border: 2px solid #f04625;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.partner-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s;
}

.partner-card img:hover {
    transform: scale(1.05);
}

.partner-name {
    display: block;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    background-color: #3a8a94;
    padding: 0.5rem;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.partner-contact {
    display: block;
    color: #80c7d0;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.partner-contact:hover {
    color: #f04625;
}

/* Таймлайн */
.timeline {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
    text-align: center;
}

.timeline h2 {
    color: white;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background-color: #3a8a94;
    padding: 0.5rem;
    border-radius: 5px;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.timeline-item {
    max-width: 1100px;
    background: linear-gradient(180deg, #ffffff, #f5f5f5);
    padding: 0.8rem;
    border: 2px solid #f04625;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.timeline-item .workshop-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    background-color: #3a8a94;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

.timeline-item p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
    text-align: left;
    line-height: 1.4;
}

.workshop-details {
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: #f5f5f5;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #3a8a94;
    border-left: 4px solid #f04625;
}

.workshop-details p {
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workshop-details a {
    color: #f04625;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.workshop-details a:hover {
    color: #80c7d0;
}

/* Футер */
footer {
    background: #f04625;
    color: white;
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
}

footer a {
    color: #80c7d0;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.3s;
}

footer a:hover {
    color: #57b1bc;
}

/* Анімації */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивність */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

    .event-info {
        font-size: 1.2rem;
    }

    .cta-button {
        width: 90vw;
        padding: 1rem;
        font-size: 1.2rem;
    }

    .teaser-button {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    nav {
        position: relative;
    }

    .nav-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f04625;
        padding: 1rem;
        z-index: 100;
    }

    nav ul.active {
        display: flex;
    }

    .teaser-grid, .speaker-grid, .partner-grid {
        flex-direction: column;
    }

    .about, .teaser, .speakers, .partners, .timeline {
        padding: 1rem;
        margin: 1rem;
    }

    .teaser-card {
        min-height: 350px;
    }

    .speakers {
        max-width: 100%;
    }

    .speaker-container {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .speaker-image {
        max-width: 80vw;
        width: 100%;
    }

    .speaker-image img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .speaker-time {
        width: 100%;
        max-width: 80vw;
        height: 60px;
        font-size: 1rem;
    }

    .partner-grid {
        gap: 1rem;
    }

    .partner-row {
        flex-direction: column;
        align-items: center;
    }

    .partner-row:nth-child(1),
    .partner-row:nth-child(2) {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0;
    }

    .partner-card {
        max-width: 100%;
    }

    .timeline-container {
        gap: 0.8rem;
    }

    .timeline-item {
        max-width: 80vw;
        padding: 0.8rem;
    }

    .timeline-item .workshop-title {
        font-size: 1.3rem;
    }

    .timeline-item p {
        font-size: 1rem;
        line-height: 1.4;
    }

    .workshop-details {
        font-size: 0.9rem;
    }
}