.public-page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 5rem 1.5rem 4rem;
    background: #07294C;
}

.public-page-hero__image,
.public-page-hero__overlay {
    position: absolute;
    inset: 0;
}

.public-page-hero__image {
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.public-page-hero__overlay {
    background: linear-gradient(
        105deg,
        rgba(7, 41, 76, 0.88) 0%,
        rgba(7, 41, 76, 0.7) 58%,
        rgba(7, 41, 76, 0.58) 100%
    );
}

.public-page-hero__content {
    position: relative;
    z-index: 1;
}

.public-page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #fff;
}

.public-page-hero__summary {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.65;
}

.public-page-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    font-weight: 500;
}

.public-page-stats {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.public-page-stat {
    padding: 1.25rem 1.5rem;
    text-align: center;
    height: 100%;
}

.public-page-stats .col-md-4 + .col-md-4 .public-page-stat,
.public-page-stats .col-md-6 + .col-md-6 .public-page-stat,
.public-page-stats .col-lg-4 + .col-lg-4 .public-page-stat,
.public-page-stats .col-lg-6 + .col-lg-6 .public-page-stat {
    border-left: 1px solid #e5e7eb;
}

.public-page-stat__value {
    display: block;
    color: #07294C;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
}

.public-page-stat__label {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-page-section {
    padding: 4rem 0;
}

.public-page-section--light {
    background: #fff;
}

.public-page-section--soft {
    background: #f8fafc;
}

.public-page-section--dark {
    background: #07294C;
    color: #fff;
}

.public-page-section--dark .section-eyebrow {
    color: rgba(255, 255, 255, 0.58);
}

.public-page-section--dark .section-heading {
    color: #fff;
}

.public-page-section--dark .section-subtext,
.public-page-section--dark p,
.public-page-section--dark li {
    color: rgba(255, 255, 255, 0.74);
}

.public-page-stack {
    display: grid;
    gap: 1.5rem;
}

.public-feature-card,
.public-link-card,
.public-logo-card,
.public-note-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.public-feature-card h3,
.public-link-card h3,
.public-logo-card h3,
.public-note-card h3 {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: 0;
}

.public-feature-card p,
.public-link-card p,
.public-logo-card p,
.public-note-card p {
    color: #475569;
    margin-bottom: 0;
    line-height: 1.65;
}

.public-link-card {
    text-decoration: none;
    display: block;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.public-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
    border-color: rgba(7, 41, 76, 0.18);
    text-decoration: none;
}

.public-page-article {
    max-width: 920px;
    margin: 0 auto;
}

.public-page-article__intro {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.public-page-article__body {
    color: #475569;
    line-height: 1.7;
}

.public-page-article__body p,
.public-page-article__body li {
    color: #475569;
}

.public-page-article__body a {
    color: #07294C;
    font-weight: 600;
}

.public-page-article__list {
    margin: 0;
    padding-left: 1.4rem;
}

.public-page-article__list li + li {
    margin-top: 1rem;
}

.public-resource-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    border: 1px solid #d7dee8;
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-winners-grid {
    display: grid;
    gap: 1.5rem;
}

.event-winners-category {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.event-winners-category__header {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.event-winners-category__header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0;
}

.event-winners-placements {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.event-winners-placement {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
}

.event-winners-placement__label {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.event-winners-placement--first .event-winners-placement__label {
    background: #fff7d6;
    border: 1px solid #fde68a;
    color: #9a6700;
}

.event-winners-placement--second .event-winners-placement__label {
    background: #f8fafc;
    border: 1px solid #d7dee8;
    color: #475569;
}

.event-winners-placement--third .event-winners-placement__label {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b45309;
}

.event-winners-placement--honorable .event-winners-placement__label {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.event-winners-placement__items {
    display: grid;
    gap: 0.8rem;
}

.event-winners-project {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.95rem 1rem;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.event-winners-project:hover {
    background: #fff;
    border-color: rgba(7, 41, 76, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.event-winners-project__title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.event-winners-project__summary {
    color: #475569;
    font-size: 0.93rem;
    line-height: 1.55;
}

.event-winners-project__citation {
    margin-top: 0.45rem;
    color: #7c2d12;
    font-size: 0.84rem;
    font-weight: 600;
}

.past-winners-year + .past-winners-year {
    margin-top: 0.5rem;
}

.past-winners-year__header {
    margin-bottom: 1.75rem;
}

.past-winners-meta {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.past-winners-group + .past-winners-group,
.past-winners-note {
    margin-top: 3.25rem;
}

.past-winners-group h3,
.past-winners-note h3 {
    display: block;
    color: #0f172a;
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    line-height: 1.25;
}

.past-winners-placement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.past-winners-rank {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #d7dee8;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.past-winners-project-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    height: 100%;
}

.past-winners-project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
    border-color: rgba(7, 41, 76, 0.18);
    text-decoration: none;
}

.past-winners-project-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f8fafc;
}

.past-winners-project-card__body {
    padding: 1rem 1.05rem 1.1rem;
}

.past-winners-project-card__title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.past-winners-note p {
    color: #475569;
    margin: 0;
    line-height: 1.7;
}

.public-link-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 198, 0, 0.16);
    color: #07294C;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.public-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.public-list li {
    color: #475569;
    line-height: 1.6;
    padding-left: 1.35rem;
    position: relative;
}

.public-list li::before {
    content: '';
    position: absolute;
    top: 0.7rem;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #FFC600;
}

.public-resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.public-resource-list li {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #e5e7eb;
}

.public-resource-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.public-resource-list a {
    color: #07294C;
    font-weight: 600;
    text-decoration: none;
}

.public-resource-list a:hover {
    text-decoration: underline;
}

.public-resource-item-title {
    display: block;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.public-resource-item-title--inline {
    display: inline;
    margin-bottom: 0;
}

.public-resource-directory {
    list-style: none;
    margin: 0;
    padding: 0;
}

.public-resource-directory li {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.public-resource-directory li:first-child {
    padding-top: 0;
}

.public-resource-directory li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.public-resource-directory__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.public-resource-directory__row a {
    color: #07294C;
    font-size: 1.03rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.public-resource-directory__row a:hover {
    color: #0a3d72;
}

.public-resource-label {
    color: #0f172a;
    font-weight: 700;
}

.public-muted {
    color: #64748b;
    font-size: 0.95rem;
}


.public-timeline-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.public-timeline-wrap img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.public-timeline-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 1.25rem;
}

.public-timeline-line {
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 1.7rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(7, 41, 76, 0.08) 0%, rgba(7, 41, 76, 0.18) 100%);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 1s ease;
}

.public-timeline-items {
    position: relative;
    display: grid;
    gap: 1rem;
}

.public-timeline-item {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.public-timeline-item:nth-child(1) { transition-delay: 0.06s; }
.public-timeline-item:nth-child(2) { transition-delay: 0.14s; }
.public-timeline-item:nth-child(3) { transition-delay: 0.22s; }
.public-timeline-item:nth-child(4) { transition-delay: 0.3s; }
.public-timeline-item:nth-child(5) { transition-delay: 0.38s; }
.public-timeline-item:nth-child(6) { transition-delay: 0.46s; }

.public-timeline-item__time {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.public-timeline-item__marker {
    position: relative;
    z-index: 1;
    width: 1.15rem;
    height: 1.15rem;
    margin: 1.1rem auto 0;
    border-radius: 999px;
    border: 3px solid #cbd5e1;
    background: #fff;
    box-shadow: 0 0 0 6px #fff;
}

.public-timeline-item__content {
    padding: 1rem 1.1rem 1.05rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.public-timeline-item__content h3 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0;
}

.public-timeline-item__content p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.public-timeline-item:last-child .public-timeline-item__content {
    padding-bottom: 0;
}

.public-timeline-item--upcoming .public-timeline-item__marker {
    border-color: #c4c4c4;
}

.public-timeline-item--upcoming .public-timeline-item__time {
    color: #475569;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.public-timeline-item--active .public-timeline-item__marker {
    border-color: #52c41a;
}

.public-timeline-item--active .public-timeline-item__time {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.public-timeline-item--final .public-timeline-item__marker {
    border-color: #FFC600;
    box-shadow: 0 0 0 6px #fff, 0 0 0 10px rgba(255, 198, 0, 0.14);
}

.public-timeline-item--final .public-timeline-item__time {
    color: #9a6700;
    background: #fff7d6;
    border-color: #fde68a;
}

.public-timeline-card.is-visible .public-timeline-line {
    transform: scaleY(1);
}

.public-timeline-card.is-visible .public-timeline-item {
    opacity: 1;
    transform: translateY(0);
}

.public-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 2rem;
}

.public-logo-card img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.public-contact-band {
    padding: 3.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #FFC600 0%, #ffb300 100%);
}

.public-contact-band h2 {
    color: #07294C;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.public-contact-band p {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    color: rgba(7, 41, 76, 0.8);
    font-size: 1rem;
}

.btn-public-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #07294C;
    text-decoration: none;
}

.btn-public-secondary:hover {
    color: #0a3d72;
    text-decoration: none;
}

.judges-process-card {
    height: 100%;
}

.judges-directory .list-group {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.judges-directory .list-group-item {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.judges-directory .list-group-item > .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    margin: 0;
}

.judges-directory .list-group-item .col-md-2,
.judges-directory .list-group-item .col-md-10 {
    width: 100%;
    max-width: none;
    padding: 0;
}

.judges-directory .list-group-item img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.judges-directory .list-group-item .col-md-10 {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.judges-directory .list-group-item p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.judges-directory .list-group-item p:first-child,
.judges-directory .list-group-item p:first-child a {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
}

.judges-directory .list-group-item p:first-child a:hover {
    color: #07294C;
}

@media (max-width: 767.98px) {
    .public-page-hero {
        padding: 4rem 1rem 3rem;
    }

    .public-page-stats .col-md-4 + .col-md-4 .public-page-stat,
    .public-page-stats .col-md-6 + .col-md-6 .public-page-stat,
    .public-page-stats .col-lg-4 + .col-lg-4 .public-page-stat,
    .public-page-stats .col-lg-6 + .col-lg-6 .public-page-stat {
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }

    .public-page-section {
        padding: 3rem 0;
    }

    .past-winners-placement-grid {
        grid-template-columns: 1fr;
    }

    .public-timeline-card {
        padding: 1.1rem 1rem;
    }

    .public-timeline-line {
        left: 1.22rem;
        top: 1.75rem;
        bottom: 1.25rem;
    }

    .public-timeline-item {
        grid-template-columns: 2.5rem minmax(0, 1fr);
        gap: 0.9rem;
    }

    .public-timeline-item__marker {
        margin-top: 1rem;
    }

    .public-timeline-item__content {
        padding: 0.95rem 0.9rem 1rem;
    }
}

/* ── Student Resources — Table of Contents ──────────────────────── */
.sr-toc {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: baseline;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.sr-toc__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.sr-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.1rem;
    counter-reset: toc-counter;
}

.sr-toc__list li {
    counter-increment: toc-counter;
    display: flex;
    align-items: center;
}

.sr-toc__list li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 0.85em;
    background: #e2e8f0;
    margin: 0 0.6rem;
    vertical-align: middle;
}

.sr-toc__list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}

.sr-toc__list a:hover {
    color: #07294C;
    text-decoration: none;
}

@media (max-width: 767px) {
    .sr-toc {
        flex-direction: column;
        gap: 1rem;
    }
    .sr-toc__list {
        flex-direction: column;
        gap: 0.5rem;
    }
    .sr-toc__list li:not(:last-child)::after {
        display: none;
    }
}
