/*
Theme Name: Falling Walls Lab CZ
Theme URI: https://www.falling-walls.cz/
Description: Custom theme for Falling Walls Lab Czech Republic
Version: 2.0.0
Author: Falling Walls Lab CZ
Text Domain: fallingwalls
*/

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    --red: #dd0816;
    --firebrick: #ac000b;
    --black: #000000;
    --white: #ffffff;
    --dim-grey: #707d8f;
    --light-grey: #d6d6d6;
    --dark-grey: #a0a0a0;
    --light-pink: #ffacb1;
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Inria Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-button: 'Montserrat', sans-serif;
    --font-czech: 'IBM Plex Serif', Georgia, serif;
    --font-quote: Georgia, serif;
    --navbar-height: 86px;
    --max-width: 1200px;
    --section-padding: 80px 0;
}

/* ==========================================================================
   BASE / RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

/* ==========================================================================
   BASE TYPOGRAPHY (exact values from original Webflow)
   ========================================================================== */
body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 29px;
    color: var(--dim-grey);
    background-color: var(--white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin: 0 0 0.5em;
}

h1 {
    font-size: 85px;
    line-height: 90px;
    font-weight: 900;
    color: var(--white);
}

h2 {
    font-size: 50px;
    line-height: 55px;
    font-weight: 900;
    color: var(--black);
}

h3 {
    font-size: 40px;
    line-height: 50px;
    font-weight: 900;
    color: var(--white);
}

h4 {
    font-size: 19px;
    line-height: 24px;
    font-weight: 800;
}

h5 {
    font-size: 22px;
    line-height: 24px;
    font-weight: 800;
}

h6 {
    font-size: 15px;
    line-height: 17px;
    font-weight: 800;
}

p {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.4px;
    color: #000;
    margin: 0 0 1em;
}

blockquote {
    font-family: var(--font-quote);
    font-style: italic;
    border-left: 3px solid var(--red);
    margin: 1.5em 0;
    padding: 10px 20px;
    color: var(--dim-grey);
}

strong, b {
    font-weight: 700;
}

/* Czech heading class */
.nadpis {
    font-family: var(--font-czech);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

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

.section {
    padding: var(--section-padding);
}

/* ==========================================================================
   BUTTONS (Montserrat)
   ========================================================================== */
.btn,
.btn-more-news,
.gallery-year-btn,
.btn-white {
    font-family: var(--font-button);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ==========================================================================
   NAVBAR (exact values from original: 86px, absolute, not fixed)
   ========================================================================== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--white);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.navbar-logo {
    position: absolute;
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
}

.navbar-logo a {
    display: block;
}

.navbar-logo img,
.navbar-logo .logo-img {
    width: 122px;
    height: 61px;
    display: block;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar-menu a,
.navbar-menu .nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 29px 10px 28px;
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
    display: inline-block;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    transform: scaleX(1);
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--red);
}

/* Mobile menu toggle */
.navbar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px;
    padding-right: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggle .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.navbar-toggle .hamburger-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--red);
    transition: transform 0.3s ease;
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background: var(--white);
    z-index: 999;
    padding: 30px 20px 60px 30px;
    overflow-y: auto;
    text-align: right;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--black);
    padding: 14px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: none;
}

.mobile-menu a:hover {
    color: var(--red);
}

/* ==========================================================================
   PAGE HEADER (Inner pages - full-width hero banner)
   ========================================================================== */
.page-header {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 0 6%;
    overflow: hidden;
    background-color: #525252;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center; /* default, overridden by inline style */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.page-header.bg-loaded .page-header-bg {
    opacity: 1;
}

.page-header-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 30px;
    margin-top: auto;
    opacity: 0;
    transform: translateY(25px);
}

.page-header.bg-loaded .page-header-content {
    animation: headerContentIn 0.8s ease 0.3s forwards;
}

@keyframes headerContentIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header-title {
    font-family: var(--font-czech);
    font-size: 54px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 90px;
    text-transform: none;
}

.page-header-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 20px auto 0;
}

.page-header-subtitle,
.page-header-subtitle p {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.page-header-subtitle p + p {
    margin-top: 0.6em;
}

.page-header-content .speakers-year-tabs {
    margin-top: 20px;
    margin-bottom: 0;
}

.page-header-content .gallery-year-btn {
    margin: 3px;
}

/* ==========================================================================
   CTA BANNER (Red banner)
   ========================================================================== */
.cta-banner {
    background: var(--red);
    color: var(--white);
    text-align: center;
    padding: 20px 30px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
}

.cta-banner a {
    color: var(--white);
    text-decoration: underline;
}

.cta-banner a:hover {
    color: var(--light-pink);
}

/* ==========================================================================
   HERO SECTION (Front page) - single background photo + 3 red boxes
   ========================================================================== */
.hero {
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: var(--navbar-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-image: var(--hero-bg, none);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.hero.hero-loaded::before {
    opacity: 1;
}

.hero-arrow {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    opacity: 0;
    z-index: 1;
}

.hero.hero-loaded .hero-arrow {
    animation: heroArrowIn 0.4s ease 1.2s forwards, arrowBounce 2s ease 1.6s infinite;
}

.hero-arrow:hover {
    opacity: 1;
}

@keyframes heroArrowIn {
    to { opacity: 1; }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.hero-boxes {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1920px;
    padding: 0 60px;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-box {
    background: linear-gradient(180deg, var(--red), var(--red));
    color: var(--white);
    flex: 1;
    min-height: 300px;
    padding: 40px 40px 60px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px);
}

.hero.hero-loaded .hero-box {
    animation: heroBoxIn 0.7s ease forwards;
}

.hero.hero-loaded .hero-box:nth-child(1) { animation-delay: 0.5s; }
.hero.hero-loaded .hero-box:nth-child(2) { animation-delay: 0.7s; }
.hero.hero-loaded .hero-box:nth-child(3) { animation-delay: 0.9s; }

@keyframes heroBoxIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-box h3 {
    font-family: var(--font-czech);
    font-size: 27px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.25;
}

.hero-box-content {
    margin-bottom: 20px;
    flex-grow: 1;
}

.hero-box-content p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    padding: 3px 0;
    color: var(--white);
    margin: 0;
}

.hero-box-content a {
    color: var(--white);
    text-decoration: underline;
}

.hero-box-content a:hover {
    text-decoration: none;
}

.hero-box .btn-white {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
    padding: 8px 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-button);
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
}

.hero-box .btn-white:hover {
    background: transparent;
    color: var(--white);
}

/* ==========================================================================
   NEWS SECTION (Front page + News page)
   ========================================================================== */
.news-section {
    padding: 60px 0;
    background: var(--white);
    max-width: 840px;
    margin: 0 auto;
}

.news-item {
    display: block;
    padding: 30px 0;
    border-bottom: 1px solid var(--light-grey);
    align-items: flex-start;
}

.news-item:first-child {
    padding-top: 0;
}

.news-date {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--red);
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 80px;
    padding-top: 4px;
    font-weight: 700;
}

.news-content h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 10px;
}

.news-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dim-grey);
    margin-bottom: 5px;
}

.news-content strong {
    color: var(--black);
}

.news-content a {
    color: var(--red);
    text-decoration: underline;
}

.btn-more-news {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 12px 36px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s ease;
    margin-top: 30px;
}

.btn-more-news:hover {
    background: var(--firebrick);
    color: var(--white);
}

/* Section labels (small text above headings, matching original) */
.section-label {
    display: block;
    font-family: var(--font-button);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3.3px;
    text-transform: uppercase;
    color: var(--dim-grey);
    margin-bottom: 10px;
}

/* ==========================================================================
   VENUE / NTK SECTION
   ========================================================================== */
.venue-section {
    padding: 60px 0;
    text-align: left;
}

.venue-section .container {
    max-width: 850px;
    margin: 0 auto;
}

.venue-section h2 {
    font-family: var(--font-czech);
    font-size: 50px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.venue-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 16px 0 0;
}

.venue-section .venue-description {
    max-width: 700px;
    margin: 30px 0 0;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.4px;
    color: var(--dim-grey);
}

/* ==========================================================================
   GALLERY PREVIEW (Front page)
   ========================================================================== */
.gallery-preview {
    padding: 40px 0 100px;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-preview-item {
    display: block;
    overflow: hidden;
}

.gallery-preview-item img,
.gallery-preview-grid > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-preview-item:hover img {
    transform: scale(1.05);
}

.gallery-years {
    text-align: center;
    margin-top: 20px;
}

.gallery-years-label {
    color: var(--red);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 15px;
}

.gallery-year-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-year-btn {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 8px 20px;
    font-family: var(--font-button);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease;
    cursor: pointer;
}

.gallery-year-btn:hover,
.gallery-year-btn.active {
    background: var(--firebrick);
    color: var(--white);
}

/* ==========================================================================
   CONTACT / MAP SECTION
   ========================================================================== */
.contact-map-section {
    display: flex;
    min-height: 450px;
}

.contact-info-panel {
    flex: 0 0 50%;
    background: var(--red);
    color: var(--white);
    padding: 150px 80px 120px 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-panel .venue-label {
    font-family: var(--font-button);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    color: var(--black);
}

.contact-info-panel h2 {
    font-family: var(--font-czech);
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.15;
}

.contact-info-panel .contact-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--white);
    margin-bottom: 32px;
}

.contact-group {
    margin-bottom: 24px;
}

.contact-group:last-child {
    margin-bottom: 0;
}

.contact-group-label {
    font-family: var(--font-button);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
    color: var(--black);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.contact-detail .contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.contact-detail a {
    color: var(--white);
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-map {
    flex: 0 0 50%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
}

/* ==========================================================================
   SPONSORS SECTION
   ========================================================================== */
.sponsors-section {
    padding: 80px 0 60px;
    text-align: center;
}

.sponsors-category {
    margin-bottom: 60px;
}

.sponsors-category-label {
    font-family: var(--font-button);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark-grey);
    margin-bottom: 20px;
}

.sponsors-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
    flex-wrap: wrap;
}

.sponsors-logos img {
    max-height: 60px;
    max-width: 250px;
    width: auto;
    transition: opacity 0.2s ease;
}

.sponsors-logos img:hover {
    opacity: 0.7;
}

.sponsors-logos.large img {
    max-height: 80px;
}

.sponsors-logos.small img {
    max-height: 45px;
}

/* ==========================================================================
   CONTENT SECTIONS (Instructions, About, etc.)
   ========================================================================== */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 20px;
}

.content-section h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 15px;
}

.content-section p {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.4px;
    color: var(--dim-grey);
    margin-bottom: 15px;
}

.content-section ul {
    margin-bottom: 20px;
}

.content-section ul li {
    font-size: 16px;
    line-height: 22px;
    color: var(--dim-grey);
    padding: 3px 0 3px 20px;
    position: relative;
}

.content-section ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
}

.content-section a,
.about-intro a,
.instructions-content a,
.schedule-info a,
.speaker-bio a,
.speaker-problem a,
.speaker-solution a,
.page-header-subtitle a,
.venue-description a,
.contact-description a,
.program-detail a {
    color: var(--red);
    text-decoration: underline;
}

.content-section a:hover,
.about-intro a:hover,
.instructions-content a:hover,
.schedule-info a:hover,
.speaker-bio a:hover,
.speaker-problem a:hover,
.speaker-solution a:hover,
.page-header-subtitle a:hover,
.venue-description a:hover,
.contact-description a:hover,
.program-detail a:hover {
    text-decoration: none;
}

.content-block {
    margin-bottom: 40px;
}


/* ==========================================================================
   PROGRAM
   ========================================================================== */
.program-section {
    padding: 40px 0 60px;
}

.program-item {
    background: var(--red);
    color: var(--white);
    margin-bottom: 3px;
}

.program-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 30px;
    gap: 5px;
}

.program-time {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    opacity: 0.85;
    min-width: 80px;
}

.program-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
}

.program-detail {
    font-size: 14px;
    font-style: italic;
    opacity: 0.85;
}

/* ==========================================================================
   SPEAKERS / JURY
   ========================================================================== */
.speakers-section {
    padding: 0;
}

.speakers-year-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.speakers-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.speakers-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    font-size: 16px;
    transition: background 0.2s ease;
}

.speakers-social-icons a:hover {
    background: var(--firebrick);
}

.speaker-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
}

/* Scroll reveal animations */
.speaker-row .speaker-photo {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.speaker-row .speaker-info {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.speaker-row:nth-child(odd) .speaker-info {
    transform: translateX(50px);
}

.speaker-row.is-visible .speaker-photo {
    opacity: 1;
    transform: translateY(0);
}

.speaker-row.is-visible .speaker-info {
    opacity: 1;
    transform: translateX(0);
}

.speaker-row:nth-child(odd) {
    flex-direction: row-reverse;
}

.speaker-photo {
    flex: 0 0 50%;
    overflow: hidden;
    aspect-ratio: 4 / 4;
    min-height: 0;
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* If text side is taller than the square, photo stretches with it via align-items: stretch */

.speaker-info {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 750px;
    margin-right: auto;
}

.speaker-project {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.speaker-name {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 15px;
    line-height: 50px;
    padding-bottom: 15px;
    position: relative;
}

.speaker-name::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--red);
}

.speaker-section-title {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3.3px;
    text-transform: uppercase;
    line-height: 10px;
    color: var(--red);
    margin-bottom: 8px;
    margin-top: 20px;
}

.speaker-section-title:first-child {
    margin-top: 0;
}

.speaker-role-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3.3px;
    text-transform: uppercase;
    line-height: 10px;
    color: var(--red);
    margin-bottom: 8px;
}

.speaker-project-text,
.speaker-problem,
.speaker-solution,
.speaker-bio {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.4px;
    color: #000;
}

/* Speaker row alternating backgrounds */
.speaker-row:nth-child(odd) .speaker-info {
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

.speaker-row:nth-child(odd) .speaker-name::after {
    left: auto;
    right: 0;
}

/* ==========================================================================
   WINNERS SECTION
   ========================================================================== */
.winners-section {
    padding: 60px 0;
}

.winners-section h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.winners-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--red);
}

.winner-year-group {
    margin-bottom: 30px;
}

.winner-year-group h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 10px;
}

.winner-entry {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dim-grey);
    padding: 3px 0;
}

.winner-entry strong {
    color: var(--red);
}

.winner-quote {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 14px;
    line-height: 1.7;
    color: var(--dim-grey);
    border-left: 3px solid var(--red);
    margin: 10px 0 20px 0;
    padding: 10px 20px;
}

/* ==========================================================================
   GALLERY PAGE
   ========================================================================== */
.gallery-section {
    padding: 40px 0 60px;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 0 40px;
    align-items: flex-start;
}

.gallery-grid-item {
    display: block;
    height: 280px;
    flex: 0 1 auto;
    overflow: hidden;
    cursor: pointer;
}

.gallery-grid-item img {
    height: 100%;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-grid-item:hover img {
    transform: scale(1.03);
}

.page-template-page-news .page-header,
.single-post .page-header {
    min-height: 0;
    padding: 100px 0 60px;
}

/* ==========================================================================
   NEWS PAGE
   ========================================================================== */
.news-page-section {
    padding: 40px 0 60px;
    max-width: 840px;
    margin: 0 auto;
}

.news-page-section .news-item {
    display: block;
}

.news-page-section .news-date {
    min-width: 0;
    padding-top: 0;
    margin-bottom: 6px;
}

.news-year-group {
    margin-bottom: 40px;
}

.news-year-group h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-grey);
}

/* ==========================================================================
   ABOUT PAGE - COMMUNITY SECTION
   ========================================================================== */
.about-intro {
    padding: 60px 0;
    max-width:900px;
    margin: 0 auto;
}

.about-intro h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--black);
    position: relative;
    padding-bottom: 12px;
}

.about-intro h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--red);
}

.about-intro p,
.about-intro li {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.4px;
    color: var(--dim-grey);
}

.about-intro h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--black);
    margin: 30px 0 10px;
}

.about-intro blockquote {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 14px;
    line-height: 1.7;
    color: var(--dim-grey);
    border-left: 3px solid var(--red);
    margin: 15px 0 25px;
    padding: 10px 20px;
}

/* ==========================================================================
   INSTRUCTIONS PAGE
   ========================================================================== */
.instructions-content {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.instructions-content .content-block {
    position: relative;
    margin-bottom: 40px;
    padding-right: 40px;
}

.instructions-content h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
}

.instructions-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--red);
}

.instructions-content p,
.instructions-content li {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.4px;
    color: var(--dim-grey);
}

/* ==========================================================================
   SCHEDULE INFO BLOCKS
   ========================================================================== */
.schedule-info {
    padding: 60px 0;
}

.schedule-info h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
}

.schedule-info h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--red);
}

.schedule-info p,
.schedule-info li {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.4px;
    color: var(--dim-grey);
}

.schedule-info ul {
    margin: 15px 0;
    padding-left: 20px;
}

.schedule-info li {
    padding: 3px 0;
}

.schedule-rules {
    background: #f5f5f5;
    padding: 40px;
    margin: 40px 0;
}

.schedule-rules h3 {
    margin-bottom: 15px;
}

.schedule-rules ul li {
    font-size: 16px;
    line-height: 22px;
    color: var(--dim-grey);
    padding: 3px 0 3px 20px;
    position: relative;
}

.schedule-rules ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--red);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    z-index: 10001;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    margin-top: 0;
}

/* ==========================================================================
   RESPONSIVE - LARGE DESKTOP (min-width: 1280px)
   ========================================================================== */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }

    .hero-box {
        min-height: 400px;
        padding: 60px 40px 100px;
    }

    .navbar-menu a,
    .navbar-menu .nav-link {
        padding-left: 15px;
        padding-right: 15px;
        font-size: 14px;
    }

    .page-header {
        justify-content: center;
        min-height: 70vh;
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET (max-width: 991px)
   ========================================================================== */
@media (max-width: 991px) {
    :root {
        --navbar-height: 70px;
    }

    h1 {
        font-size: 55px;
        line-height: 60px;
    }

    h2 {
        font-size: 36px;
        line-height: 42px;
    }

    h3 {
        font-size: 30px;
        line-height: 38px;
    }

    .navbar-logo img,
    .navbar-logo .logo-img {
        width: 100px;
        height: auto;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 20px 60px;
    }

    .hero-boxes {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 20px;
    }

    .hero-box {
        width: 100%;
        min-height: auto;
        padding: 25px 20px;
    }

    /* Page header */
    .page-header {
        min-height: 300px;
        padding-top: calc(var(--navbar-height) + 25px);
    }

    .page-header-title {
        font-size: 55px;
        line-height: 60px;
    }

    /* Speakers */
    .speaker-row,
    .speaker-row:nth-child(odd),
    .speaker-row:nth-child(even) {
        flex-direction: column;
    }

    .speaker-row:nth-child(odd) .speaker-info {
        margin-left: 0;
        text-align: left;
    }

    .speaker-row:nth-child(odd) .speaker-name::after {
        left: 0;
        right: auto;
    }

    .speaker-photo {
        flex: 0 0 auto;
        aspect-ratio: 4 / 4;
        height: auto;
    }

    .speaker-info {
        padding: 35px 30px;
    }

    .speaker-name {
        font-size: 30px;
        line-height: 38px;
    }

    /* Gallery */
    .gallery-grid-item {
        height: 220px;
    }

    /* Contact/Map */
    .contact-map-section {
        flex-direction: column;
    }

    .contact-map iframe {
        min-height: 350px;
    }

    /* News */
    .news-item {
        flex-direction: column;
        gap: 8px;
    }

    /* Container */
    .container {
        padding: 0 20px;
    }


    /* Gallery preview */
    .gallery-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Venue */
    .venue-section h2 {
        font-size: 36px;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
    :root {
        --navbar-height: 60px;
    }

    .hero-arrow {
        display: none;
    }

    h1 {
        font-size: 10vw;
        line-height: 1.1;
    }

    h2 {
        font-size: 7vw;
        line-height: 1.15;
    }

    h3 {
        font-size: 6vw;
        line-height: 1.2;
    }

    .page-header {
        min-height: 250px;
    }

    .page-header-title {
        font-size: 44px;
        line-height: 1.1;
    }

    .hero-box {
        width: 100%;
        padding: 25px 20px;
    }

    .hero-box h3 {
        font-size: 21px;
    }

    /* Speakers */
    .speaker-photo {
        aspect-ratio: 4 / 4;
        height: auto;
    }

    .speaker-info {
        padding: 25px 20px;
    }

    .speaker-name {
        font-size: 7vw;
        line-height: 1.2;
    }

    .speaker-bio,
    .speaker-project-text,
    .speaker-problem,
    .speaker-solution {
        font-size: 14px;
        line-height: 20px;
    }

    /* Gallery */
    .gallery-grid-item {
        height: 180px;
    }

    /* Gallery preview */
    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Program */
    .program-header {
        padding: 15px 20px;
    }

    /* Contact */
    .contact-info-panel {
        padding: 40px 25px;
    }

    .contact-info-panel h2 {
        font-size: 36px;
    }

    /* Sponsors */
    .sponsors-logos {
        gap: 25px;
    }

    .sponsors-logos img {
        max-height: 45px;
    }

    /* Venue */
    .venue-section h2 {
        font-size: 30px;
    }

    /* Instructions */
    .instructions-content {
        padding: 40px 0;
    }

    .instructions-content .content-block {
        padding-right: 0;
    }

    /* Section padding */
    .section {
        padding: 40px 0;
    }
}

/* ==========================================================================
   RESPONSIVE - SMALL MOBILE (max-width: 479px)
   ========================================================================== */
@media (max-width: 479px) {
    h1 {
        font-size: 36px;
        line-height: 42px;
    }

    h2 {
        font-size: 28px;
        line-height: 34px;
    }

    h3 {
        font-size: 22px;
        line-height: 28px;
    }

    .page-header-title {
        font-size: 36px;
        line-height: 42px;
    }

    .speaker-name {
        font-size: 24px;
        line-height: 30px;
    }

    .hero-box h3 {
        font-size: 19px;
    }

    .gallery-grid-item {
        height: 160px;
    }

    .gallery-preview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info-panel {
        padding: 30px 20px;
    }

    .contact-info-panel h2 {
        font-size: 30px;
    }

    .speakers-year-tabs {
        gap: 6px;
    }

    .gallery-year-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
