/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
    line-height: 1.6;
    background: #000000;
    color: #FFF;
    min-height: 100vh;
    padding: 20px;
    padding-top: 80px; /* Space for fixed nav */
    position: relative;
    overflow-x: hidden;
}

/* Navigation */
.pixel-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 20, 0.95);
    border-bottom: 4px solid #7D9ADD;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.nav-link {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #D1BAFB;
    text-decoration: none;
    padding: 10px 15px;
    transition: all 0.2s;
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: #BEEBF4;
    text-shadow: 2px 2px 0px #000, 0 0 10px rgba(190, 235, 244, 0.6);
}

.nav-link.nav-cta {
    background: #D1BAFB;
    color: #000;
    border: 3px solid #fff;
    box-shadow: 4px 4px 0px #000;
    text-shadow: none;
}

.nav-link.nav-cta:hover {
    color: #000;
    opacity: 0.85;
    text-shadow: none;
}

.nav-link.nav-cta-disabled {
    background: #282a36;
    color: #7D9ADD;
    border-color: #7D9ADD;
    cursor: not-allowed;
    opacity: 0.8;
    pointer-events: none;
}

.nav-link.nav-cta-disabled:hover {
    opacity: 0.8;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15; /* Darker background for better readability */
    z-index: -1;
}

#mlh-trust-badge {
    display: block;
    position: fixed;
    right: 50px;
    top: 0;
    width: 10%;
    max-width: 100px;
    min-width: 60px;
    z-index: 10000;
}

#mlh-trust-badge img {
    display: block;
    width: 100%;
    height: auto;
}

.container {
    max-width: 1000px; /* Increased width for more breathing room */
    margin: 0 auto;
}

/* ============================================
   PIXELATED THEME
   ============================================ */

.pixelated-theme {
    background: #000000;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.pixel-header {
    text-align: center;
    padding: 60px 20px 40px; /* Increased padding */
    margin-bottom: 20px;
}

.pixel-presents {
    font-size: 12px;
    color: #FFFFFF;
    text-shadow: 3px 3px 0px #000;
    margin-bottom: 50px;
    font-family: 'Press Start 2P', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.pixel-presents-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

.pixel-presents-link:hover {
    color: #FFFFFF;
    text-shadow: 2px 2px 0px #000, 0 0 10px rgba(209, 186, 251, 0.8);
}

.logo-container {
    margin-bottom: 40px; /* Separates logos from text */
}

.cloud-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    image-rendering: pixelated;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.banner {
    max-width: 500px; /* Slightly larger banner */
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    display: block;
    margin: 0 auto;
}

.header-text-content {
    /* Optional: background box if needed, but spacing helps more */
    padding: 20px;
}

.cta-section {
    text-align: center;
    margin-bottom: 70px; /* More space before content */
    padding: 20px;
}


/* Typography */
.pixel-subtitle {
    font-size: 28px; /* Larger */
    color: #D1BAFB;
    text-shadow: 4px 4px 0px #000, 0 0 15px rgba(209, 186, 251, 0.6);
    margin-bottom: 15px;
    letter-spacing: 3px;
    line-height: 1.4;
}

.pixel-tagline {
    font-size: 18px;
    color: #D1BAFB;
    margin-bottom: 30px; /* More separation */
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 1px;
}

.org-link-wrapper {
    margin-bottom: 25px;
}

.pixel-org-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

.pixel-org-link:hover {
    transform: scale(1.05);
}

.pixel-org-link:hover .pixel-org {
    color: #BEEBF4;
    text-shadow: 0 0 10px rgba(190, 235, 244, 0.8);
}

.pixel-org {
    font-size: 14px;
    color: #BEEBF4;
    text-shadow: 2px 2px 0px #000;
}

.pixel-dates {
    font-size: 20px;
    color: #BEEBF4;
    text-shadow: 2px 2px 0px #000;
    margin-top: 20px;
    letter-spacing: 2px;
}

.pixel-venue {
    font-size: 16px;
    color: #FFFFFF;
    text-shadow: 2px 2px 0px #000;
    margin-top: 15px;
    letter-spacing: 1px;
    font-family: 'Press Start 2P', cursive;
}

.pixel-heading {
    font-size: 28px;
    color: #D1BAFB;
    text-shadow: 4px 4px 0px #000;
    margin-bottom: 35px;
    text-transform: uppercase;
    border-bottom: 4px solid #7D9ADD;
    padding-bottom: 15px;
    display: inline-block;
    line-height: 1.4;
}

.pixel-heading.secondary {
    font-size: 22px;
    margin-top: 40px;
    color: #7D9ADD;
    border-color: #BEEBF4;
}

.pixel-subheading {
    font-size: 18px;
    color: #BEEBF4;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 #000;
    line-height: 1.4;
}

.pixel-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    line-height: 1.8; /* Increased line height */
    margin-bottom: 15px;
    color: #f8f8f2;
}

.pixel-text strong {
    color: #D1BAFB;
}

.pixel-text.small {
    font-size: 14px;
    color: #aaa;
}

.ccs-link {
    color: #BEEBF4;
    text-decoration: none;
    transition: color 0.2s;
}

.ccs-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

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

.mt-20 {
    margin-top: 20px;
}

/* Layout & Containers */
.pixel-section {
    margin-bottom: 80px; /* Increased separation between sections */
}

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

.pixel-info-box {
    background: rgba(10, 10, 20, 0.9); /* More opaque background */
    border: 4px solid #7D9ADD;
    padding: 30px; /* More padding inside boxes */
    margin-bottom: 30px;
    box-shadow: 8px 8px 0px #000; /* Deeper shadow */
    position: relative;
}

.challenge-highlight {
    background: rgba(209, 186, 251, 0.1);
    border-left: 4px solid #D1BAFB;
    padding: 20px 25px;
    margin-top: 25px;
    text-align: left;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px; /* Increased gap */
}

/* Organizers */
.organizers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

/* Sponsors */

/* Presenting sponsor section */
.sponsor-presenting {
    text-align: center;
    margin-bottom: 40px;
}

.sponsor-tier-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #D1BAFB;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.sponsor-card-featured {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 200px;
    height: 200px;
    overflow: hidden;
    margin: 0 auto;
}

.sponsor-card-featured .sponsor-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo-featured {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Wide featured sponsor card for horizontal banners */
.sponsor-card-featured-wide {
    display: block;
    padding: 0;
    max-width: 600px;
    overflow: hidden;
    margin: 0 auto;
    background: #0000ff;
    line-height: 0;
}

.sponsor-card-featured-wide .sponsor-link {
    display: block;
    width: 100%;
    padding: 0;
    line-height: 0;
}

.sponsor-logo-featured-wide {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Organized sponsors grid - 2 columns */
.sponsors-grid-organized {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.sponsor-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    transition: border-color 0.2s, transform 0.2s;
    margin-bottom: 0;
}

/* Wide sponsor cards for rectangular logos */
.sponsor-card-wide {
    aspect-ratio: auto;
}

.sponsor-card-wide .sponsor-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* White background for logos on transparent */
.sponsor-card-white {
    background: #ffffff;
}

/* Dark background for logos with built-in dark styling */
.sponsor-card-dark {
    background: #1a1a2e;
}

.sponsor-logo-wide {
    max-width: 260px;
    width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

/* Larger logo for Featherless AI */
.sponsor-logo-featherless {
    max-width: 340px;
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.sponsor-logo-featherless {
    max-width: 320px;
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

/* Sponsor card where image fills the space (image has built-in background) */
.sponsor-card-fill {
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.sponsor-card-fill .sponsor-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sponsor-logo-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sponsor-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sponsor-card:hover {
    border-color: #D1BAFB;
    transform: scale(1.02);
}

.sponsor-logo {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

/* Centered sponsor card (for odd number of sponsors) */
.sponsor-card-centered {
    grid-column: 1 / -1;
    max-width: 450px;
    justify-self: center;
}

/* Legacy grid (keeping for compatibility) */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

/* Square sponsor card with no padding - fills entire space */
.sponsor-card-square {
    padding: 0;
    aspect-ratio: 1;
    overflow: hidden;
}

.sponsor-card-square .sponsor-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo-square {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

/* Sponsor & Partner Tooltips */

/* Community Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.partner-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 160px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
    background: #ffffff;
    border: 4px solid #7D9ADD;
    box-shadow: 8px 8px 0px #000;
}

.partner-card:hover {
    border-color: #D1BAFB;
}

/* Partner card where image fills the space */
.partner-card-fill {
    padding: 0;
    overflow: hidden;
}

.partner-card-fill .partner-logo {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-logo {
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.organizer-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
}

.organizer-photo-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(125, 154, 221, 0.3);
    border: 3px solid #7D9ADD;
    border-radius: 50%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.organizer-photo-placeholder::after {
    content: '📷';
    font-size: 40px;
    opacity: 0.5;
}

.organizer-photo {
    width: 120px;
    height: 120px;
    border: 3px solid #7D9ADD;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    display: block;
}

.organizer-card .pixel-subheading {
    margin-bottom: 10px;
}

.organizer-linkedin {
    color: #BEEBF4;
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    transition: color 0.2s;
}

.organizer-linkedin:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Schedule */
.schedule-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.schedule-list {
    list-style: none;
    font-family: 'Roboto Mono', monospace;
}

.schedule-list li {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(190, 235, 244, 0.2);
    padding-bottom: 15px;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list .time {
    font-weight: bold;
    color: #D1BAFB;
    width: 200px; /* Wider for better alignment */
    flex-shrink: 0;
}

.schedule-list .event {
    color: #fff;
}

/* Prizes */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly wider cards */
    gap: 30px;
}

.prize-card {
    text-align: center;
    height: 100%; /* Equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prize-amount {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px; /* Larger prize amount */
    margin: 20px 0;
    color: #FFFFFF;
    text-shadow: 2px 2px 0 #000;
}

.prize-card.gold { border-color: #D1BAFB; }
.prize-card.gold .pixel-subheading { color: #D1BAFB; }

.prize-card.silver { border-color: #7D9ADD; }
.prize-card.silver .pixel-subheading { color: #BEEBF4; }

.prize-card.bronze { border-color: #BEEBF4; }
.prize-card.bronze .pixel-subheading { color: #BEEBF4; }

.prize-card.category { border-color: #7D9ADD; }
.prize-card.category .pixel-subheading { color: #BEEBF4; min-height: 3.5em; }

/* Buttons */
.pixel-button {
    padding: 18px 36px;
    background: #7D9ADD;
    border: 4px solid #fff;
    color: #000;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 6px 6px 0px #000;
    transition: all 0.1s;
    display: inline-block;
}

.pixel-button.cta-main {
    font-size: 22px; /* Slightly smaller for cleaner look */
    padding: 25px 50px;
    background: #D1BAFB;
    letter-spacing: 2px;
}

.pixel-button:hover:not(.disabled) {
    opacity: 0.85;
}

.pixel-button:active:not(.disabled) {
    opacity: 0.7;
}

.pixel-button.disabled {
    background: #282a36; /* Darker background */
    color: #7D9ADD;
    border-color: #7D9ADD;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0px #000;
    opacity: 0.8;
}

.coming-soon-note {
    margin-top: 20px;
    font-size: 14px;
    color: #BEEBF4;
    letter-spacing: 1px;
}

/* Email Form Styles */
.notification-heading {
    font-size: 18px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
    font-family: 'Press Start 2P', cursive;
}

.email-form {
    max-width: 600px;
    margin: 0 auto;
}

.email-input-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.pixel-input {
    flex: 1;
    min-width: 250px;
    padding: 18px 24px;
    background: rgba(10, 10, 20, 0.9);
    border: 4px solid #D1BAFB;
    color: #FFF;
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    box-shadow: 6px 6px 0px #000;
    transition: all 0.1s;
    outline: none;
    height: 60px;
    box-sizing: border-box;
}

.pixel-input::placeholder {
    color: #FFFFFF;
    opacity: 0.8;
}

.pixel-input:focus {
    border-color: #D1BAFB;
    box-shadow: 8px 8px 0px #000;
    background: rgba(10, 10, 20, 1);
    outline: none;
}

.pixel-input:invalid:not(:placeholder-shown),
.pixel-input.invalid {
    border-color: #ff6b6b;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.submit-btn {
    padding: 18px 36px;
    background: #D1BAFB;
    border: 4px solid #fff;
    color: #000;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 6px 6px 0px #000;
    white-space: nowrap;
    height: 60px;
    box-sizing: border-box;
    transition: opacity 0.2s;
}

.pixel-button.submit-btn:hover {
    opacity: 0.85;
}

.pixel-button.submit-btn:active {
    opacity: 0.7;
}

.submit-btn:disabled {
    background: #282a36;
    color: #7D9ADD;
    border-color: #7D9ADD;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0px #000;
    opacity: 0.8;
}

.form-message {
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    min-height: 24px;
}

.form-message.success {
    color: #BEEBF4;
}

.form-message.error {
    color: #ff6b6b;
}

/* Requirements & Rules Lists */
.requirements-list, .rules-list, .criteria-list {
    margin-left: 20px;
    font-family: 'Roboto Mono', monospace;
}

.requirements-list li, .rules-list li {
    margin-bottom: 15px;
}

.highlight-text {
    margin-top: 25px;
    color: #BEEBF4;
    border-top: 2px dashed #7D9ADD;
    padding-top: 20px;
    line-height: 1.6;
}

/* Judging Criteria Specifics */
.criteria-list {
    list-style: none;
    margin-left: 0;
}

.criteria-list li {
    margin-bottom: 25px;
    border-left: 4px solid #D1BAFB;
    padding-left: 20px;
}

.criteria-list li:last-child {
    margin-bottom: 0;
}

.criteria-title {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #D1BAFB;
    margin-bottom: 10px;
    line-height: 1.5;
}

.criteria-desc {
    font-size: 16px;
    color: #f8f8f2;
}

/* FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
    border: 3px solid #7D9ADD;
    background: rgba(10, 10, 20, 0.9);
    box-shadow: 6px 6px 0px #000;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #D1BAFB;
}

.faq-item.active {
    border-color: #D1BAFB;
}

.faq-toggle {
    width: 100%;
    padding: 22px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.faq-toggle:focus {
    outline: none;
}

.faq-question {
    color: #D1BAFB;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.8;
    flex: 1;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 2px 2px 0 #000;
}

.faq-icon {
    width: 14px;
    height: 14px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: #BEEBF4;
    border-radius: 1px;
}

.faq-icon::before {
    width: 14px;
    height: 3px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq-icon::after {
    width: 3px;
    height: 14px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.faq-item.active .faq-icon::after {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 25px 22px 25px;
    border-top: 2px solid rgba(125, 154, 221, 0.3);
    margin: 0 25px;
    padding-top: 18px;
}

.faq-answer .pixel-text {
    margin-bottom: 0;
    color: #f8f8f2;
    line-height: 1.8;
}

/* Footer */
.pixel-footer {
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
    border-top: 4px solid #7D9ADD;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 100px; /* More space for wrapped nav */
    }

    .nav-container {
        gap: 5px;
        padding: 10px 15px;
    }

    .nav-link {
        font-size: 8px;
        padding: 8px 10px;
    }

    .nav-link.nav-cta {
        border-width: 2px;
        box-shadow: 3px 3px 0px #000;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }
    
    .pixel-heading {
        font-size: 22px;
    }

    .cloud-logo {
        max-width: 300px;
    }

    .banner {
        max-width: 90%;
    }

    .pixel-button.cta-main {
        font-size: 18px;
        padding: 20px 30px;
        width: 100%;
    }

    .email-input-wrapper {
        flex-direction: column;
    }

    .pixel-input {
        width: 100%;
        min-width: 100%;
    }

    .submit-btn {
        width: 100%;
    }

    .notification-heading {
        font-size: 14px;
    }

    .schedule-list .time {
        width: 100px; /* Adjust for mobile */
        font-size: 14px;
    }
    
    .pixel-subtitle {
        font-size: 20px;
    }

    .pixel-presents {
        font-size: 10px; /* Smaller on mobile */
    }

    .organizers-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .sponsors-grid,
    .sponsors-grid-organized {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sponsor-card-wide {
        padding: 25px;
    }

    .sponsor-card-centered {
        max-width: 100%;
    }

    .sponsor-logo-wide {
        max-width: 200px;
    }

    .sponsor-card-featured {
        width: 160px;
        height: 160px;
    }

    .sponsor-card-featured-wide {
        max-width: 100%;
    }

    .sponsor-tier-label {
        font-size: 10px;
    }

    .partners-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .partner-card {
        min-height: 130px;
        padding: 20px;
        box-shadow: 6px 6px 0px #000;
    }

    .partner-logo {
        max-width: 120px;
        max-height: 80px;
    }

    .faq-question {
        font-size: 12px;
    }

    .organizer-photo-placeholder {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 120px;
    }

    .nav-container {
        gap: 6px;
        padding: 10px;
    }

    .nav-link {
        font-size: 7px;
        padding: 8px 8px;
        letter-spacing: 0.5px;
    }

    .nav-link.nav-cta {
        padding: 8px 10px;
        border-width: 2px;
        box-shadow: 2px 2px 0px #000;
    }

    .pixel-header {
        padding: 30px 12px 24px;
    }

    .pixel-presents {
        font-size: 9px;
        margin-bottom: 24px;
        letter-spacing: 1px;
    }

    .logo-container {
        margin-bottom: 20px;
    }

    .cloud-logo {
        max-width: 240px;
    }

    .banner {
        max-width: 260px;
    }

    .header-text-content {
        padding: 10px 0 0;
    }

    .pixel-dates {
        font-size: 14px;
        margin-top: 12px;
        letter-spacing: 1px;
    }

    .pixel-venue {
        font-size: 12px;
        margin-top: 10px;
        letter-spacing: 0.5px;
        line-height: 1.6;
    }

    #mlh-trust-badge {
        display: none;
    }
}

/* ============================================
   APPLICATION MODAL STYLES
   ============================================ */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay[aria-hidden="true"] {
    display: none;
}

.modal-overlay[aria-hidden="false"] {
    display: flex;
}

/* Modal Container */
.modal-container {
    background: rgba(10, 10, 20, 0.98);
    border: 4px solid #7D9ADD;
    box-shadow: 12px 12px 0px #000;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    scrollbar-width: thin;
    scrollbar-color: #7D9ADD rgba(10, 10, 20, 0.5);
}

.modal-container::-webkit-scrollbar {
    width: 10px;
}

.modal-container::-webkit-scrollbar-track {
    background: rgba(10, 10, 20, 0.5);
}

.modal-container::-webkit-scrollbar-thumb {
    background: #7D9ADD;
    border: 2px solid rgba(10, 10, 20, 0.5);
}

/* Modal Close Button */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 3px solid #D1BAFB;
    color: #D1BAFB;
    font-size: 24px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

.modal-close-btn:hover {
    background: #D1BAFB;
    color: #000;
}

.modal-close-btn:active {
    opacity: 0.8;
}

/* Modal Heading */
.modal-heading {
    text-align: center;
    margin-bottom: 30px;
    padding-right: 40px; /* Space for close button */
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px dashed rgba(125, 154, 221, 0.3);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.form-section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: #BEEBF4;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 #000;
}

.form-section-title .optional {
    font-size: 10px;
    color: #7D9ADD;
}

.form-section-note {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group-small {
    max-width: 150px;
}

/* Form Labels */
.form-label {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #BEEBF4;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 #000;
}

.form-label .required {
    color: #ff6b6b;
}

.form-label .optional {
    font-size: 8px;
    color: #7D9ADD;
}

/* Form Inputs */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid #7D9ADD;
    color: #FFF;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.5), 4px 4px 0px #000;
    transition: all 0.2s;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #D1BAFB;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.5), 6px 6px 0px #000;
    background: rgba(0, 0, 0, 0.8);
}

.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
    border-color: #ff6b6b;
    animation: shake 0.3s;
}

.form-input.valid,
.form-select.valid {
    border-color: #6bff8e;
}

/* Form Select */
.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23BEEBF4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-select option {
    background: #0a0a14;
    color: #FFF;
    padding: 10px;
}

/* Form Textarea */
.form-textarea {
    resize: vertical;
    min-height: 50px;
    max-height: 200px;
    height: 50px;
}

.form-char-count {
    display: block;
    text-align: right;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #7D9ADD;
    margin-top: 5px;
}

/* Form Error Messages */
.form-error {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #ff6b6b;
    margin-top: 8px;
    min-height: 16px;
}

/* Searchable Dropdown */
.searchable-dropdown {
    position: relative;
}

.dropdown-input {
    cursor: text;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: rgba(10, 10, 20, 0.98);
    border: 3px solid #D1BAFB;
    border-top: none;
    box-shadow: 6px 6px 0px #000;
    z-index: 100;
    display: none;
    scrollbar-width: thin;
    scrollbar-color: #7D9ADD rgba(10, 10, 20, 0.5);
}

.dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: rgba(10, 10, 20, 0.5);
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: #7D9ADD;
}

.dropdown-list.active {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: #FFF;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(125, 154, 221, 0.2);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.highlighted {
    background: rgba(209, 186, 251, 0.2);
    color: #D1BAFB;
}

.dropdown-item.selected {
    background: rgba(209, 186, 251, 0.3);
    color: #D1BAFB;
}

.dropdown-no-results {
    padding: 15px;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: #7D9ADD;
    text-align: center;
}

/* Checkbox Styles */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.checkbox-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    color: #FFF;
    line-height: 1.5;
    position: relative;
    padding-left: 35px;
}

.checkbox-label-long {
    align-items: flex-start;
}

.form-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid #7D9ADD;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
    flex-shrink: 0;
}

.form-checkbox:checked + .checkbox-custom {
    background: #D1BAFB;
    border-color: #D1BAFB;
    box-shadow: none;
}

.form-checkbox:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 6px;
    height: 11px;
    border: solid #000;
    border-width: 0 3px 3px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.form-checkbox:focus + .checkbox-custom {
    box-shadow: 0 0 0 2px rgba(209, 186, 251, 0.5);
}

.checkbox-label:hover .checkbox-custom {
    border-color: #D1BAFB;
}

.checkbox-text {
    flex: 1;
}

.checkbox-text a {
    color: #BEEBF4;
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: #D1BAFB;
}

.checkbox-text .required {
    color: #ff6b6b;
}

.checkbox-text .optional {
    color: #7D9ADD;
    font-size: 12px;
}

/* Form Actions */
.form-actions {
    text-align: center;
    padding-top: 10px;
}

.submit-application-btn {
    width: 100%;
    max-width: 400px;
    padding: 20px 40px;
    font-size: 14px;
    background: #D1BAFB;
}

.submit-application-btn:hover {
    opacity: 0.85;
}

.submit-application-btn:active {
    opacity: 0.7;
}

.submit-application-btn:disabled {
    background: #282a36;
    color: #7D9ADD;
    border-color: #7D9ADD;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0px #000;
    opacity: 1;
}

/* CTA Apply Button (smaller than cta-main) */
.apply-cta-btn {
    font-size: 16px;
    padding: 18px 36px;
    background: #D1BAFB;
    letter-spacing: 1px;
}

.apply-cta-btn:hover {
    opacity: 0.85;
}

.apply-cta-btn:active {
    opacity: 0.7;
}

.apply-cta-btn:disabled {
    background: #282a36;
    color: #7D9ADD;
    border-color: #7D9ADD;
    cursor: not-allowed;
    opacity: 0.8;
}

.apply-cta-btn:disabled:hover {
    opacity: 0.8;
}

/* Maintenance notice modal (compact) */
.maintenance-modal-container {
    max-width: 420px;
    padding: 30px 28px;
}

.maintenance-modal-container .modal-heading {
    font-size: 18px;
    margin-bottom: 16px;
}

#application-form-message {
    margin-bottom: 20px;
}

#application-form-message.success {
    color: #6bff8e;
}

#application-form-message.error {
    color: #ff6b6b;
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}

body.modal-open #mlh-trust-badge {
    display: none;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }

    .modal-container {
        padding: 25px 20px;
        max-height: 95vh;
    }

    .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    .modal-heading {
        font-size: 20px;
        padding-right: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group-small {
        max-width: 100%;
    }

    .form-section-title {
        font-size: 12px;
    }

    .form-label {
        font-size: 9px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .submit-application-btn {
        font-size: 12px;
        padding: 18px 30px;
    }
}
