/* =====================================================
   JUDGES.CSS  —  judges.asp
   ===================================================== */

::selection { background: rgba(185,151,87,0.35); }

/* ===================== SECTION ===================== */
.judges-section {
    position: relative;
    padding: 72px 60px 60px;
}

.judges-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(185,151,87,0.06) 0%,
        rgba(185,151,87,0.025) 40%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
}

.judges-container {
    max-width: 1260px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===================== GROUP ===================== */
.judge-group {
    margin-bottom: 68px;
}

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

.group-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: #b99757;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(185,151,87,0.2);
}

/* ===================== GRID ===================== */
.judge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* ===================== CARD ===================== */
.judge-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transform: translateY(20px);
    transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.judge-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .55s cubic-bezier(.16,1,.3,1),
        transform .55s cubic-bezier(.16,1,.3,1),
        background .22s ease,
        box-shadow .22s ease;
}

.judge-card:hover {
    background: rgba(255,255,255,0.055);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

/* Photo */
.judge-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #141414;
}

.judge-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    opacity: 0.9;
    transition: transform .3s ease, opacity .3s ease;
}

.judge-card:hover .judge-photo {
    transform: scale(1.04);
    opacity: 1;
}

/* Body */
.judge-body {
    padding: 14px 16px 18px;
}

.judge-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.25;
}

.judge-role {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #b99757;
    margin-bottom: 10px;
}

.judge-bio {
    font-size: 12.5px;
    line-height: 1.6;
    color: #888;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.judge-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: color .2s;
}

.judge-link:hover { color: #fff; }

/* ===================== SCROLL REVEAL ===================== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity .7s cubic-bezier(.16,1,.3,1),
        transform .7s cubic-bezier(.16,1,.3,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .judge-card {
        opacity: 1 !important;
        transform: none !important;
        transition: background .2s, box-shadow .2s !important;
    }
}

/* ===================== BACK LINK ===================== */
.back-wrap {
    max-width: 1260px;
    margin: 0 auto;
    padding: 8px 60px 64px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: color .2s;
}

.back-link:hover { color: #fff; }
.back-link:hover svg { transform: translateX(-3px); }
.back-link svg { transition: transform .2s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
    .judges-hero    { padding: 0 20px 50px; min-height: 42vh; }
    .judges-hero h1 { font-size: 38px; }
    .judges-section { padding: 56px 20px 48px; }
    .back-wrap      { padding: 8px 20px 48px; }
}

@media (max-width: 640px) {
    .judges-hero h1     { font-size: 30px; }
    .judge-grid         { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 380px) {
    .judge-grid         { grid-template-columns: 1fr; }
}


.judge-profile {
    max-width: 900px;
    margin: 8px auto;
    padding: 0 20px;
}

.judge-profile-photo {
    float: left;
    margin: 0 30px 20px 0;
    width: 220px;
}

    .judge-profile-photo img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

.judge-profile h1 {
    margin-top: 0;
}

.judge-profile-bio {
    line-height: 1.6;
}