/* TPC Swiss Design Theme - Clean & Minimal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Color Palette */
:root {
    --dark-black: #1a1a1a;
    --accent-red: #C41E3A;         /* Pantone 485C */
    --light-cream: #E8E8DD;        /* Pantone Cloud Dancer */
    --light-gray: #F5F5F5;
    --medium-gray: #9A9A9A;
    --border-color: #D8D8D8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-black);
    background: white;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    position: fixed;
    top: -120px;
    left: 0;
    right: 0;
    z-index: 200;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: top 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.navbar.navbar-visible {
    top: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 70px;
}

.nav-logo {
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-black);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.nav-link:hover {
    color: var(--accent-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* External links */
.external-link {
    text-decoration: none;
    color: var(--accent-red);
    font-weight: 600;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: var(--dark-black);
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    background: url('resources/web-header_2026.png') center/contain no-repeat, linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(245, 245, 245, 0.85) 100%);
    background-blend-mode: lighten;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 40vw;
    color: var(--dark-black);
    position: relative;
}

/* Expandable history section */
.expandable {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.expandable.collapsed {
    max-height: 420px; /* approximate height showing first image and text */
}
.expandable.collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
    background: linear-gradient(transparent, white);
}
.expandable.expanded {
    max-height: none;
}

/* Performers grid and cards */
.performers-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.performer-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.performer-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.performer-image {
    flex: 0 0 250px;
    height: 250px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.performer-info {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    padding: 15px;
}
.performer-card .performer-info h3 {
    font-size: 1.2rem;
    color: var(--dark-black);
    font-weight: 700;
    text-align: left;
    text-transform: none;
    margin-bottom: 0.5rem;
    letter-spacing: normal;
}
.performer-description {
    padding-top: 0px;
}

/* Performer Desktop Styles (> 768px) */
@media (min-width: 769px) {
    .performer-image {
        flex: 0 0 480px;
        height: 320px;
    }
    .performer-info {
        flex: 1 1 200px;
    }
    /* Desktop title size */
    .performer-card .performer-info h3 {
        font-size: 1.6rem;
    }
}

/* Performer Mobile Styles (≤ 768px) */
@media (max-width: 768px) {
    .performer-image {
        flex: 0 0 100%;
        height: 200px;
    }
    .performer-info {
        flex: 0 0 100%;
    }
}


/* Toggle button used in history and performers */
.toggle-button {
    display: block;
    margin: 20px auto 0;
    padding: 8px 20px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;    
}
.toggle-button:hover {
    background: #9D1B2C;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--accent-red);
}

.hero-content {
    width: 100%;
    max-width: 800px;
}

.hero-content h1 {
    margin-top: 15%;
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h2 {
    margin-top: 15%;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--dark-black);
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-black);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.date-badge {
    background: var(--accent-red);
    color: white;
    padding: 16px 32px;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sections */
.section {
    padding: 20px 40px;
}

.section:nth-child(even) {
    background: var(--light-gray);
}

.section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-black);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.section h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--accent-red);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--medium-gray);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-red);
    transition: box-shadow 0.3s ease;
}

.section:nth-child(even) .info-card {
    background: white;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
    color: var(--dark-black);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card p {
    color: #666;
    line-height: 1.8;
    font-size: 0.9rem;
}

.info-card-wide {
    background: white;
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.info-card-wide h3 {
    color: var(--dark-black);
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.info-card-wide p {
    color: #666;
    line-height: 1.8;
}

.info-card-wide img {
    margin-top: 20px;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.activity-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.section:nth-child(even) .activity-card {
    background: white;
}

.activity-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.activity-content {
    max-height: none;
    padding: 20px;
    transition: max-height 0.4s ease;
}

.activity-content h3 {
    color: var(--dark-black);
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.activity-content p {
    color: #666;
    line-height: 1.7;
    font-size: 0.9rem;
}


/* Groups Grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.group-card {
    background: white;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.section:nth-child(even) .group-card {
    background: white;
}

.group-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.group-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--light-cream);
    border-bottom: 3px solid var(--accent-red);
}

.group-content {
    padding: 18px;
}

.group-content h3 {
    color: var(--dark-black);
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.group-content p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Sponsors Grid */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.sponsors-card {
    background: white;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.section:nth-child(even) .sponsors-card {
    background: white;
}

.sponsors-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sponsors-image {
    height: 120px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--light-cream);
}

.sponsors-content {
    margin-bottom: 40px;
    text-align: center;
}

.sponsors-content h3 {
    color: var(--medium-gray);
    font-size: 0.85rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Schedule Table */
.schedule-table {
    background: white;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table th {
    background: var(--dark-black);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.schedule-table td {
    color: #555;
    font-size: 0.9rem;
}

.schedule-table tr:nth-child(odd) {
    background: #FAFAFA;
}

.schedule-table .demonstration-row {
    font-weight: 600;
    background: var(--light-cream);
    color: var(--accent-red);
}

.schedule-table p {
    text-align: center;
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-top: 15px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Contact Section */
.contact-info {
    text-align: center;
    background: var(--dark-black);
    color: white;
    padding: 60px 40px;
    margin-top: 0;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-red);
}

.contact-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.contact-item span {
    font-size: 0.9rem;
    line-height: 1.5;
}

.icon {
    width: 24px;
    height: 24px;
    fill: var(--accent-red);
    flex-shrink: 0;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 14px 36px;
    text-decoration: none;
    border: 2px solid var(--accent-red);
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
}

.cta-button:hover {
    background: white;
    color: var(--accent-red);
}

/* Figure and Figcaption */
figure {
    margin: 0;
}

figcaption {
    font-size: 0.8rem;
    color: var(--medium-gray);
    font-style: italic;
    margin-top: 8px;
    text-align: center;
    letter-spacing: 0.2px;
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: var(--light-cream);
    text-align: center;
    padding: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 1280px) {
    .hero {
        height: 60vw;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 60px 25px;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .groups-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }

    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 15px;
    }

    .contact-details {
        flex-direction: column;
        gap: 25px;
    }

    .contact-info {
        padding: 40px 25px;
    }

    .date-badge {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {

    .hero {
        height: 80vw;
    }
    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .date-badge {
        width: 90vw;
        padding: 8px 24px;
        font-size: 0.65rem;
    }

    .section {
        padding: 40px 16px;
    }

    .section h2 {
        margin-top: 15px;
        font-size: 1.2rem;
    }

    .nav-container {
        flex-direction: column;
        height: auto;
        min-height: 60px;
        gap: 8px;
        padding: 0 15px;
    }

    .nav-menu {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-logo {
        width: 80px;
        height: 28px;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .groups-grid,
    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    .contact-info {
        padding: 30px 15px;
    }

    .contact-info h3 {
        font-size: 1.2rem;
    }

    .activity-image {
        height: 180px;
    }

    .info-grid {
        gap: 20px;
    }

    .info-card,
    .info-card-wide {
        padding: 20px;
    }
}
