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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --text-primary: #e8e8ed;
    --text-secondary: #8888a0;
    --accent: #00d4ff;
    --accent-dim: #0099bb;
    --visited-link: #ff8bd8;
    --border: #2a2a3a;
}

a:visited {
    color: var(--visited-link);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.4rem;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.hero-image {
    max-width: 420px;
    width: 100%;
    height: auto;
    margin: 32px 0 16px;
    border-radius: 12px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Hero title with logo — "Sheba ARC Healthcare" kicker text above the Game Jam logo image */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.hero-title-text {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.hero-logo {
    display: block;
    width: 100%;
    max-width: 540px;
    height: auto;
}

/* Plain-text "Game Jam" caption under the stylized logo — fallback for legibility */
.hero-logo-label {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: -4px;
}

/* Section banner — wide image used to separate or introduce a section */
.section-banner {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0 32px;
}

.subtitle {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.presented-by {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 12px;
}

.presented-by a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.presented-by a:hover {
    color: var(--accent);
}

.hero-tagline {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 24px;
    font-style: italic;
}

/* Hero pills — three short outcome labels under the tagline, prime the value prop before the CTA */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.hero-pill {
    padding: 7px 16px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.cta-button {
    display: inline-block;
    padding: 16px 36px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 32px;
    transition: opacity 0.2s, transform 0.2s;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.cta-button:visited {
    color: var(--bg-primary);
}

/* Smaller secondary sign-up button used at the end of in-content sections */
.cta-button-small {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.cta-button-small:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.cta-button-small:visited {
    color: var(--bg-primary);
}

.section-cta {
    text-align: center;
    margin-top: 32px;
}

/* "Limited spots" urgency notice */
.limited-notice {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 16px;
    text-align: center;
}

.cta-box-notice {
    margin-top: 12px;
    text-align: left;
}

/* Visited-link contrast fixes — browser default purple/blue is unreadable on dark bg */
/* Inline content links inherit accent so they pop against dark cards and stay readable when visited */
.info-card a,
.info-card a:visited,
.section > p a,
.section > p a:visited,
.cta-box a,
.cta-box a:visited {
    color: var(--accent);
}

.info-card a:hover,
.section > p a:hover,
.cta-box a:hover {
    color: var(--accent-dim);
}

/* Button-style links keep their dark text — overrides the inline-link color rule above */
.cta-box .cta-button,
.cta-box .cta-button:visited,
.cta-box .cta-button:hover,
.info-card .cta-button-small,
.info-card .cta-button-small:visited,
.info-card .cta-button-small:hover {
    color: var(--bg-primary);
}

/* In-card CTA — push to bottom of card so paired cards align on the button row.
   margin-top: auto absorbs all extra vertical space; align-self prevents stretching to full width. */
.info-card-cta {
    margin-top: auto;
    align-self: flex-start;
}

/* Sibling combinator gives the preceding paragraph a guaranteed bottom margin so the bottom-aligned
   button never sits flush against the paragraph in the tallest card. */
.info-card p:has(+ .info-card-cta) {
    margin-bottom: 24px;
}

nav a:visited {
    color: var(--text-secondary);
}

footer a:visited {
    color: var(--text-secondary);
}

/* Card-style links keep their own typography — visited shouldn't recolor h3/text */
.problem-card:visited,
.video-card:visited,
.partner-logo:visited {
    color: inherit;
}

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 40px auto 0;
}

/* Sections */
.section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.section h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.section p {
    color: var(--text-secondary);
    max-width: 600px;
}

/* Featured section — extra visual weight for the highest-priority section (Outcomes) */
.section-kicker {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-heading-large {
    font-size: 1.9rem !important;
    font-weight: 400 !important;
    line-height: 1.3;
    margin-bottom: 16px !important;
    max-width: 900px;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-primary) !important;
    margin-bottom: 8px;
}

/* Accent-bordered cards — distinguishes featured value-prop cards from neutral info cards */
.info-cards-featured .info-card {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.08);
}

/* Highlights */
.highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.highlight-icon {
    color: var(--accent);
}

/* Location Card */
.location-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-top: 32px;
    max-width: 400px;
}

.location-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

.location-note {
    font-size: 0.9rem;
    margin-top: 8px;
}

/* CTA Box */
.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-top: 32px;
}

.cta-box h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

/* Primary CTA box — accent border + glow to stand apart from neutral info-cards */
.cta-box-primary {
    border: 2px solid var(--accent);
    box-shadow: 0 0 32px rgba(0, 212, 255, 0.18);
    padding: 36px 32px;
    text-align: center;
}

.cta-box-primary h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.cta-box-primary p {
    max-width: none;
    color: var(--text-primary);
}

.cta-box-primary .cta-button {
    margin: 16px 0 8px;
}

.cta-box-primary .limited-notice {
    margin-top: 16px;
}

/* Past Game Jams */
.past-jam-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

.past-jam-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.jam-details {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
}

.jam-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Prizes */
.prizes-box {
    margin-top: 32px;
}

.prizes-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.prizes-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.prize-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 28px;
    text-align: center;
    min-width: 120px;
}

.prize-first {
    border-color: #ffd700;
}

.prize-second {
    border-color: #c0c0c0;
}

.prize-third {
    border-color: #cd7f32;
}

.prize-place {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.prize-first .prize-place {
    color: #ffd700;
}

.prize-second .prize-place {
    color: #c0c0c0;
}

.prize-third .prize-place {
    color: #cd7f32;
}

.prize-amount {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.judging-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Schedule */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.schedule-day {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.schedule-day h3 {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-list {
    list-style: none;
}

.schedule-list li {
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

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

.schedule-list .time {
    color: var(--text-primary);
    font-weight: 500;
    margin-right: 8px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.info-cards-three {
    grid-template-columns: repeat(3, 1fr);
}

.info-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.info-card h4 {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    font-size: 0.9rem;
}

/* Partners */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    margin-top: 24px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s, transform 0.2s;
}

.partner-logo:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.partner-logo-light {
    background: #f0f0f0;
}

.partner-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.tech-partners-section {
    padding-top: 0;
}

.tech-partners-grid .partner-logo img {
    height: 96px;
}

/* Problems */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.problem-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
    overflow: hidden;
}

.problem-card-thumb {
    width: calc(100% + 48px);
    height: 150px;
    margin: -24px -24px 20px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.problem-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.problem-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}

.problem-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.problem-clinician {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Examples */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.example-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.example-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.example-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.example-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.example-card h3 {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 20px 12px;
}

.example-card p {
    font-size: 0.9rem;
    margin: 0 20px 12px;
}

.example-highlight {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding-bottom: 20px;
}

/* Videos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.video-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    padding-left: 4px;
    transition: background 0.2s;
}

.video-card:hover .play-icon {
    background: var(--accent);
}

.video-card h3 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 16px;
    line-height: 1.4;
}

/* Card shared styles */
.coming-soon {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

/* FAQ */
.faq-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: var(--accent);
}

.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s;
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    max-width: none;
    font-size: 0.95rem;
}

/* Brand Assets */
.brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-width: 400px;
}

.brand-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin-top: 24px;
}

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

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 12px 32px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.85rem;
    }

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

    .info-cards,
    .info-cards-three {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-title-text {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .hero-logo-label {
        font-size: 0.95rem;
        letter-spacing: 4px;
    }

    .hero-pill {
        font-size: 0.7rem;
        padding: 5px 12px;
        letter-spacing: 0.5px;
    }

    .section-heading-large {
        font-size: 1.4rem !important;
    }

    .prizes-grid {
        justify-content: center;
    }

    .prize-card {
        flex: 1;
        min-width: 90px;
        padding: 16px 12px;
    }

    .prize-amount {
        font-size: 1.2rem;
    }

    .partners-grid {
        justify-content: center;
        gap: 24px;
    }

    .partner-logo img {
        height: 60px;
    }

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

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


/* Standalone FAQ page */
.faq-hero {
    padding-bottom: 36px;
}

.faq-list a,
.faq-list a:visited {
    color: var(--accent);
}

.faq-list a:hover {
    color: var(--accent-dim);
}
