/* ===========================
   Title & Logo Section
   =========================== */
.title-container {
    position: relative;
    width: 63%;
    margin: 0 auto;
    height: auto;
    padding-top: 23vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    flex-shrink: 0;
    overflow: hidden;
}

/* Homepage - vertically center the SVG */
.homepage .title-container {
    height: 100vh;
    padding-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Other pages - less padding top, just below menu */
.title-container.logo-regular-container {
    padding-top: 120px;
    padding-bottom: 60px;
}

@media (min-aspect-ratio: 1/1) {
    .title-container {
        background-size: 100% auto;
    }
}

@media (max-aspect-ratio: 1/1) {
    .title-container {
        background-size: auto 100%;
    }
}

.main-title {
    width: 100%;
    text-align: center;
    pointer-events: auto;
}

.main-title img, .main-title svg {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.main-title.logo-homepage img,
.main-title.logo-homepage svg,
.main-title.logo-homepage canvas {
    width: 70%;
    max-width: 70%;
}

/* Animated logo canvas specific styles */
.animated-logo-canvas {
    display: block;
    margin: 0 auto;
    width: 800px;
    height: 500px;
    max-width: 100%;
}

.main-title.logo-regular img,
.main-title.logo-regular svg {
    width: 40%;
    max-width: 40%;
}

/* ===========================
   Content Structure
   =========================== */
.content-container {
    position: relative;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    z-index: 2;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-section {
    padding: 2rem;
    border-radius: 8px;
    width: 75%;
    color: #1fa244;
}

/* Ensure first section has no extra top margin */
.content-container > .content-section:first-child {
    margin-top: 0;
}

.content-section-green {
    padding: 5rem 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* Full-width green background section */
.section-green {
    background-color: #1fa244;
    width: 100vw;
    padding: 2rem;
    margin-bottom: 4rem;
}

.section-green .content-section {
    background: transparent;
    box-shadow: none;
    border: none;
    max-width: 1200px;
    margin: 0 auto;
}

.section-green .content-section * {
    color: white;
}

/* Open Call Section Typography */
.section-green .session-title {
    color: white;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-align: center;
}

/* Smaller font size for h3.session-title when it follows h2.session-title */
.section-green h3.session-title {
    font-size: 2.2rem;
    margin-top: -1rem;
}

.section-green p {
    color: white;
    font-size: 1.5rem;
    line-height: 1.6;
    font-family: 'Acumin Pro', sans-serif;
    font-weight: 400;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
    text-align: center;
}

.section-green p:first-of-type {
    font-size: 1.6rem;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-green p:last-child {
    font-weight: 400;
    font-size: 1.6rem;
    text-align: center;
    margin-top: 1.5rem;
    font-family: 'Acumin Pro', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===========================
   Typography - Content Specific
   =========================== */
.section-title {
    color: #1fa244;
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-family: 'Acumin Pro', sans-serif;
    text-transform: uppercase;
    text-align: center;
}


.section-text {
    font-size: 2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-weight: 400;
    color: #1fa244;
    font-family: 'Acumin Pro', sans-serif;
}

.footnote {
    font-size: 2rem;
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: #1fa244;
    font-family: 'Acumin Pro', sans-serif;
}

/* ===========================
   Language Switcher (Content Specific)
   =========================== */
.language-switcher {
    font-family: 'Acumin Pro', sans-serif;
    font-size: 1.2rem;
    color: #1fa244;
    z-index: 1000;
}

.language-switcher a {
    color: #1fa244;
    font-style: normal;
    font-weight: 400;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.2s ease;
    padding: 5px;
}

.language-switcher a:hover {
    opacity: 1;
}

.language-switcher a.active-lang {
    font-style: italic !important;
    font-weight: 400;
    opacity: 1;
}

/* ===========================
   Event List Component
   =========================== */
.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.event-list li {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    line-height: 1.5;
    color: #1fa244;
    font-family: 'Acumin Pro', sans-serif;
    display: flex;
    justify-content: center;
}

.event-date {
    color: #1fa244;
    font-weight: 400;
    font-style: italic;
    width: 50%;
    text-align: right;
    padding-right: 1rem;
}

.part-title {
    color: #1fa244;
    font-family: 'Acumin Pro', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    width: 50%;
    text-align: left;
    padding-left: 1rem;
}

/* ===========================
   Team List Component
   =========================== */
.team-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.team-list li {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #1fa244;
    font-family: 'Acumin Pro', sans-serif;
}

.team-role {
    color: #1fa244;
    font-weight: 400;
    margin-right: 0.5rem;
    font-family: 'Acumin Pro', sans-serif;
    font-style: italic;
}

.team-list li a {
    color: inherit;
    text-decoration: none;
}

.team-list li a:hover {
    text-decoration: underline;
}

/* ===========================
   Sessions Component
   =========================== */
.session-title {
    color: #1fa244;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    font-family: 'Acumin Pro', sans-serif;
    text-transform: uppercase;
    text-align: center;
}

.session-subtitle {
    color: #1fa244;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    line-height: 1.3;
    text-align: center;
}

.session-date {
    color: #1fa244;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-family: 'Acumin Pro', sans-serif;
    text-align: center;
}

.session-description {
    color: #1fa244;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: 'Acumin Pro', sans-serif;
    opacity: 0.9;
}

/* Mistura Open Call specific styles */
.content-section p {
    font-family: 'Acumin Pro', sans-serif;
    font-weight: 400;
    color: #1fa244;
    font-size: 1.3rem;
    line-height: 1.6;
}

.photo-credit {
    font-style: italic;
    opacity: 0.8;
}

.session-note {
    color: #1fa244;
    font-size: 1.3rem;
    line-height: 1.5;
    font-family: 'Acumin Pro', sans-serif;
    opacity: 0.8;
    margin-top: 1rem;
}

.session-note a {
    color: #1fa244;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.session-note a:hover {
    opacity: 0.6;
}

.session-image {
    width: 100%;
    height: auto;
    margin: 1.5rem 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Image Components
   =========================== */
.home-image-item {
    margin-bottom: 2rem;
}

.home-image-item:last-child {
    margin-bottom: 0;
}

/* ===========================
   Funding & Credits
   =========================== */
.funding {
    margin-top: 2rem;
    font-size: 1.4rem;
    font-style: italic;
    text-align: center;
    color: #1fa244;
    font-family: 'Fraunces', serif;
}

/* ===========================
   Read More Link
   =========================== */
.read-more-link {
    display: inline-block;
    color: var(--primary-green);
    text-decoration: none;
    font-size: 1.6rem;
    font-family: 'Acumin Pro', sans-serif;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.read-more-link:hover {
    border-bottom-color: var(--primary-green);
}

.section-green .read-more-link {
    color: var(--bg-color);
}

.section-green .read-more-link:hover {
    border-bottom-color: var(--bg-color);
}

/* Registration form link styling */
.registration-link {
    display: inline-block;
    color: var(--primary-green);
    text-decoration: none;
    font-size: 1.6rem;
    font-family: 'Acumin Pro', sans-serif;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.registration-link:hover {
    border-bottom-color: var(--primary-green);
}

.section-green .registration-link {
    color: var(--bg-color);
}

.section-green .registration-link:hover {
    border-bottom-color: var(--bg-color);
}

/* ===========================
   Footer
   =========================== */
footer {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    margin-top: 3rem;
    z-index: 3;
}

.footer-content {
    text-align: center;
    width: 100%;
}

.footer-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

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

.logo-column h4 {
    color: #1fa244;
    font-family: 'Acumin Pro', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: none;
}

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

.logo-items a {
    display: block;
    max-width: 200px;
    transition: opacity 0.3s ease;
}

.logo-items a:hover {
    opacity: 0.7;
}

.logo-items img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.footer-content p {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Acumin Pro', sans-serif;
}

.footer-content a {
    color: #1fa244;
    text-decoration: none;
    font-style: italic;
    transition: opacity 0.3s ease;
}

.footer-content a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ===========================
   Responsive - Tablet (768px)
   =========================== */
@media (max-width: 768px) {
    .title-container {
        width: 90%;
        padding-top: 15vh;
    }
    
    .homepage .title-container {
        height: 100vh;
        padding-top: 0;
    }
    
    .title-container.logo-regular-container {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .content-container {
        padding: 1rem 0;
    }
    
    .content-section {
        padding: 1.5rem;
        width: 95%;
    }
    
    .content-section-white, 
    .content-section:not(.content-section-green) {
        width: 95%;
    }
    
    .section-green {
        padding: 3rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .section-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .footnote {
        font-size: 1rem;
        margin: 1.5rem 0;
    }
    
    .event-list li {
        font-size: 1.1rem;
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .event-date, .part-title {
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .event-date {
        margin-bottom: 0.5rem;
    }
    
    .team-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .team-list li {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .session-title {
        font-size: 1.6rem;
    }
    
    .session-subtitle {
        font-size: 1.3rem;
    }
    
    .session-date {
        font-size: 1.1rem;
    }
    
    .session-description {
        font-size: 1rem;
    }
    
    .session-note {
        font-size: 0.9rem;
    }
    
    .funding {
        font-size: 1rem;
        margin-top: 1.5rem;
    }
    
    .main-title {
        font-size: 4rem;
    }
    
    .main-title.logo-homepage img,
    .main-title.logo-homepage svg,
    .main-title.logo-homepage canvas {
        width: 85%;
        max-width: 85%;
    }
    
    .animated-logo-canvas {
        width: 600px;
        height: 375px;
    }
    
    .main-title.logo-regular img,
    .main-title.logo-regular svg {
        width: 60%;
        max-width: 60%;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .footer-logos {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .logo-column h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .logo-items {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo-items a {
        max-width: 150px;
    }
    
    .logo-items img {
        max-height: 50px;
    }
    
    .footer-content p {
        font-size: 1rem;
    }
}

/* ===========================
   Responsive - Mobile (480px)
   =========================== */
@media (max-width: 480px) {
    .title-container {
        width: 95%;
        padding-top: 12vh;
    }
    
    .homepage .title-container {
        height: 100vh;
        padding-top: 0;
    }
    
    .title-container.logo-regular-container {
        padding-top: 90px;
        padding-bottom: 35px;
    }
    
    .content-container {
        padding: 1rem 0;
    }
    
    .content-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
        width: 98%;
    }
    
    .content-section-white,
    .content-section:not(.content-section-green) {
        width: 98%;
    }
    
    .section-green {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .section-text {
        font-size: 0.9rem;
    }
    
    .footnote {
        font-size: 0.9rem;
    }
    
    .event-list li {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .team-list li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .session-title {
        font-size: 1.4rem;
    }
    
    .session-subtitle {
        font-size: 1.1rem;
    }
    
    .session-date {
        font-size: 1rem;
    }
    
    .session-description {
        font-size: 0.9rem;
    }
    
    .session-note {
        font-size: 0.8rem;
    }
    
    .funding {
        font-size: 0.9rem;
    }
    
    .main-title.logo-homepage img,
    .main-title.logo-homepage svg,
    .main-title.logo-homepage canvas {
        width: 90%;
        max-width: 90%;
    }
    
    .animated-logo-canvas {
        width: 400px;
        height: 250px;
    }
    
    /* Footer */
    footer {
        padding: 1rem 0;
        margin-top: 1.5rem;
    }
    
    .footer-logos {
        margin-bottom: 1.5rem;
    }
    
    .logo-column h4 {
        font-size: 0.9rem;
    }
    
    .logo-items a {
        max-width: 120px;
    }
    
    .logo-items img {
        max-height: 40px;
    }
    
    .footer-content p {
        font-size: 0.9rem;
    }
}