@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;1,400&family=Newsreader:ital,wght@0,400;0,700;1,400;1,700&display=swap');

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

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: 'Newsreader', 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #e8e8e8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #FFC700;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
        pointer-events: none;
        z-index: -1;
    }
}

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

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

.logo {
    font-family: 'Instrument Serif', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: hsla(223.08, 38%, 20%, 1);
    text-decoration: none;
    text-align: center;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.header-nav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

nav > ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    text-decoration: none;
    color: hsla(223.08, 38%, 20%, 1);
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

nav a:hover,
nav a.active {
    opacity: 0.7;
}

/* Artist/Partner Dropdown */
nav > ul > li {
    position: relative;
}

.artist-dropdown, .partner-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFC700;
    list-style: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 200px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

nav > ul > li:hover > .artist-dropdown, nav > ul > li:hover > .partner-dropdown {
    display: flex;
}

.artist-dropdown li, .partner-dropdown li {
    padding: 0;
}

.artist-dropdown li a, .partner-dropdown li a {
    display: block;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.artist-dropdown li a:hover, .partner-dropdown li a:hover {
    background-color: rgba(0, 0, 0, 0.08);
    opacity: 1;
}

main {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Home Page Sections */
.home-section {
    padding: 4rem 0;
    min-height: 400px;
}

.home-section h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    text-align: center;
    color: hsla(223.08, 38%, 20%, 1);
}

/* Individual section styling */
.section-1 {
    background-color: #E1B000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    padding-top: 2rem;
}

.section-1.header-color {
    background-color: #FFC700;
}

.section-1 .container {
    max-width: 100%;
    width: 95%;
}

.section-1 h1 {
    color: #ffffff;
    font-size: 9rem;
    line-height: 1.1;
}

.section-1 h1 .highlight-x {
    color: #6D6767;
}

.section-1-subtitle {
    font-family: 'Newsreader', serif;
    color: #ffffff;
    font-style: italic;
    font-size: 3.375rem;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.2;
}

.section-2 {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 400px;
}

.section-2 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sound-toggle-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.sound-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.sound-toggle-btn svg {
    width: 24px;
    height: 24px;
}

.section-4 {
    background-color: #f5f5f5;
}

.section-4 .section-header {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 5rem;
}

.section-6 {
    padding: 0;
    min-height: auto;
}

.section-3 {
    background-color: #6D6767;
    flex: 1;
    display: flex;
    align-items: center;
}

.section-3 .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.section-5 {
    background-color: #FFC700;
}

.section-3-content {
    margin: 0 auto;
    text-align: center;
}

.section-3-content p {
    font-family: 'Instrument Serif', serif;
    color: #FFC700;
    margin: 0.2rem 0;
    line-height: 1.1;
}

.section-3-content .highlight-x {
    color: #FFC700;
}

.text-size-1 {
    font-size: 12rem;
    font-weight: bold;
    margin-bottom: 0.5rem !important;
}

.text-size-2 {
    font-size: 5.796rem;
    margin-bottom: 0.3rem !important;
}

.text-size-3 {
    font-size: 5.5rem;
    margin-bottom: 0.3rem !important;
}

.text-size-4 {
    font-size: 4.2rem;
}

.text-size-5 {
    font-size: 3.3rem;
}

.text-size-6 {
    font-size: 2.54rem;
}

.text-size-7 {
    font-size: 2.1rem;
}

/* Section Header */
.section-header {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.5rem;
    color: #2c2c2c;
    margin-bottom: 2rem;
    text-align: center;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.column-left {
    display: flex;
    justify-content: center;
}

.column-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.column-right p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c2c2c;
}

.column-right .footer-btn {
    margin-top: 1.5rem;
    text-align: center;
    padding: 12px 30px;
    width: fit-content;
}

.artistic-leaders-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.artist-credentials {
    margin-top: 3rem;
}

.artist-credentials p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #2c2c2c;
    margin-bottom: 0.8rem;
}

/* Section 5 specific styling */
.section-5 .container {
    max-width: 100%;
    width: 100%;
}

.section-5 .section-header {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 5rem;
}

/* Three Column Layout */
.three-column-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.program-column {
    text-align: center;
}

.program-column p {
    font-family: 'Instrument Serif', serif;
    font-size: 2.88rem;
    font-weight: 400;
    color: #2c2c2c;
}

.program-title {
    font-family: 'Instrument Serif', serif;
    font-size: 2.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 1rem;
    min-height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.program-subsections {
    margin-top: 2rem;
}

.subsection-divider {
    border: none;
    border-top: 2px solid #2c2c2c;
    margin: 1.5rem 0;
}

.subsection {
    margin-bottom: 1.5rem;
}

.subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.subsection-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    color: #2c2c2c;
    font-weight: 400;
}

.subsection-location {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    color: #2c2c2c;
    margin-top: 0.25rem;
    text-align: left;
}

.subsection-content {
    display: block;
    margin-top: 0.5rem;
    max-height: none;
    overflow: visible;
}

a.subsection-link,
a.subsection-link:link,
a.subsection-link:visited,
a.subsection-link:hover,
a.subsection-link:active {
    text-decoration: none !important;
    color: #2c2c2c !important;
    display: block;
    border-bottom: none !important;
}

a.subsection-link * {
    text-decoration: none !important;
    border-bottom: none !important;
}

a.subsection-link:hover .subsection-title {
    color: #8B4513 !important;
}

.subsection-content p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    color: #2c2c2c;
    margin: 0.5rem 0;
    text-align: left;
}

.section-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
}

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

.page-title {
    font-family: 'Instrument Serif', serif;
    font-size: 2.5rem;
    color: #FFC700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-family: 'Newsreader', serif;
    font-size: 1.2rem;
    color: #7a7a7a;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.8rem;
    color: hsla(139.15, 100%, 40%, 1);
    margin-bottom: 1rem;
}

.content-section h3 {
    font-family: 'Instrument Serif', serif;
}

.content-section p {
    margin-bottom: 1rem;
    color: #333;
}

/* Button Styles */
.btn-register,
.button {
    display: inline-block;
    font-family: 'Newsreader', serif;
    background: hsla(139.15, 100%, 54%, 1);
    color: hsla(223.08, 38%, 20%, 1);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.btn-register:hover,
.button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.card h3 {
    font-family: 'Instrument Serif', serif;
    color: #000000;
    margin-bottom: 1rem;
}

.event-date {
    background: #FFC700;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: bold;
}

.person-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

footer {
    background-color: #FFC700;
    padding: 2rem 0;
    text-align: center;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-btn {
    font-family: 'Newsreader', serif;
    background-color: #000000;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 2rem;
    }

    nav > ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .home-section {
        padding: 3rem 0;
        min-height: 300px;
    }

    .home-section h1 {
        font-size: 2.5rem;
    }

    .section-1 {
        padding-top: 1.5rem;
    }

    .section-1 h1 {
        font-size: 4rem;
    }

    .section-1-subtitle {
        font-size: 1.5rem;
    }

    .text-size-1 {
        font-size: 6rem;
    }

    .text-size-2 {
        font-size: 2.902rem;
    }

    .text-size-3 {
        font-size: 2.75rem;
    }

    .text-size-4 {
        font-size: 2.1rem;
    }

    .text-size-5 {
        font-size: 1.65rem;
    }

    .text-size-6 {
        font-size: 1.27rem;
    }

    .text-size-7 {
        font-size: 1.05rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .language-flags {
        order: 3;
        margin-left: 10px;
    }

    .footer-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-btn {
        width: 80%;
        max-width: 300px;
    }

    .section-header {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .section-5 .section-header {
        font-size: 4rem;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .artistic-leaders-image {
        max-width: 100%;
    }

    .column-right p {
        font-size: 1rem;
    }

    .three-column-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .program-column p {
        font-size: 2.4rem;
    }

    .program-title {
        font-size: 2.4rem;
        min-height: 8rem;
    }

    .subsection-title {
        font-size: 1.2rem;
    }

    .subsection-content p {
        font-size: 0.9rem;
    }
}

/* Language flags styling */
.language-flags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flag-link {
    display: inline-block;
    padding: 4px;
    border-radius: 3px;
    transition: opacity 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.flag-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.flag-link.active {
    box-shadow: 0 0 0 2px hsla(223.08, 38%, 20%, 1);
}

.flag-link img {
    display: block;
    border-radius: 2px;
}