/* additional css for awards here */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --awards-bg: #111111;
    --awards-card-bg: #1e1e1e;
    --awards-card-border: #2e2e2e;
    --awards-gold: #C5973A;
    --awards-text-secondary: #9ca3af;
    --awards-footer-bg: #0d0d0d;
}

/* ============ UTILITY CLASSES ============ */

.font-awards-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.bg-awards-dark {
    background-color: var(--awards-bg);
}

.bg-awards-card {
    background-color: var(--awards-card-bg);
}

.text-awards-secondary {
    color: var(--awards-text-secondary);
}

/* ============ HERO OVERLAY ============ */

.awards-hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.75) 100%);
}

/* ============ CENTER-ALIGNED ALTERNATING TIMELINE ============ */

.awards-timeline-center {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.awards-timeline-center::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #444;
}

.awards-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.awards-timeline-left-col {
    width: calc(50% - 16px);
    text-align: right;
    padding-right: 1.25rem;
}

.awards-timeline-dot-col {
    width: 32px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    padding-top: 4px;
}

.awards-timeline-dot-col::after {
    content: '';
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--awards-gold);
    background: transparent;
}

.awards-timeline-right-col {
    width: calc(50% - 16px);
    text-align: left;
    padding-left: 1.25rem;
}

/* Desktop: alternating entries show content left, time right */
.awards-timeline-alt .awards-timeline-left-col .awards-timeline-time {
    display: none;
}
.awards-timeline-alt .awards-timeline-left-col .awards-timeline-title,
.awards-timeline-alt .awards-timeline-left-col .awards-timeline-desc {
    display: block;
}
.awards-timeline-alt .awards-timeline-right-col .awards-timeline-title,
.awards-timeline-alt .awards-timeline-right-col .awards-timeline-desc {
    display: none;
}

/* Non-alt entries: left shows time only, right shows content */
.awards-timeline-item:not(.awards-timeline-alt) .awards-timeline-right-col .awards-timeline-time {
    display: none;
}

/* Mobile: always time left, content right */
@media (max-width: 767px) {
    .awards-timeline-center::before {
        left: 70px;
        transform: none;
    }
    .awards-timeline-item {
        flex-wrap: nowrap;
    }
    .awards-timeline-left-col {
        width: 60px;
        text-align: left;
        padding-right: 0;
        font-size: 0.8rem;
    }
    .awards-timeline-dot-col {
        width: 20px;
        flex-shrink: 0;
        padding-top: 4px;
    }
    .awards-timeline-right-col {
        width: calc(100% - 80px);
        padding-left: 0.75rem;
        text-align: left;
    }

    /* Mobile: left col shows ONLY time, right col shows ONLY title+desc */
    .awards-timeline-left-col .awards-timeline-title,
    .awards-timeline-left-col .awards-timeline-desc {
        display: none !important;
    }
    .awards-timeline-left-col .awards-timeline-time {
        display: block !important;
    }
    .awards-timeline-right-col .awards-timeline-time {
        display: none !important;
    }
    .awards-timeline-right-col .awards-timeline-title,
    .awards-timeline-right-col .awards-timeline-desc {
        display: block !important;
    }
}

/* ============ FEATHERLIGHT & FORM ============ */

.featherlight-no-padding button.featherlight-close {
    display: none;
}

.featherlight .featherlight-no-padding {
    padding: 0;
    border-bottom: 0;
}

/* ============ CONTAINER OVERRIDES ============ */

.container:not(.Header) {
    width: 100% !important;
    padding: 0 0.75rem;
}

@media(min-width: 1200px){
    .container:not(.Header) {
        width: 1180px !important;
        margin: 0 auto;
        padding: 0;
    }
}

@media(min-width: 1440px){
    .container:not(.Header) {
        width: 1200px !important;
    }
}

@media only screen and (max-width: 580px) {
    .class-with-text {
        font-size: 0.62em;
    }
}

/* ============ FORM VALIDATION ============ */

.parsley-errors-list {
    display: none;
}

input.parsley-error, select.parsley-error, textarea.parsley-error {
    border: none;
}

.header-search-result {
    margin-bottom: 0 !important;
}

/* ============ HERO SECTION ============ */

.award-header {
    background-size: cover;
    background-position: center;
    position: relative;
}

/* ============ VIDEO ============ */

.about-video {
    height: 300px;
    width: 100%;
}

@media(min-width: 1200px){
    .about-video {
        width: 400px;
    }
}

/* ============ SPONSORS ============ */

.awards-sponsors-section {
    padding-bottom: 5rem;
}

.awards-sponsor-box {
    width: 200px !important;
    height: 70px !important;
    min-width: 200px !important;
    min-height: 70px !important;
    max-width: 200px !important;
    max-height: 70px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.awards-sponsor-box img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.awards-tier {
    color: #b0b0b0;
}

.awards-tier .hr-container{
    width: 35%;
}

.awards-tier hr {
    width: 100%;
    border: none;
    height: 1px;
}

.awards-tier .hr-container:first-child hr {
    background: linear-gradient(to right, transparent, #555);
}

.awards-tier .hr-container:last-child hr {
    background: linear-gradient(to right, #555, transparent);
}

.awards-tier > div:nth-child(2) {
    width: 40%;
    text-align: center;
}

.awards-tier-0 .hr-container {
    width: 35%;
}

.awards-tier-1 .hr-container {
    width: 35%;
}

@media(min-width: 1024px){
    .awards-tier > div:nth-child(2) {
        width: 15%;
    }

    .awards-tier-0 .hr-container {
        width: 25%;
    }

    .awards-tier-1 .hr-container {
        width: 25%;
    }
}

/* ============ MISC ============ */

#toast-container {
    z-index: 1900000005 !important;
}

.filepond--panel-root {
    background-color: #f0f9ff;
}

.filepond--drop-label {
    color: #888;
}

/* ============ FOOTER OVERRIDE (awards pages only) ============ */

footer {
    margin-top: 0 !important;
}

footer.footer-mobile > div {
    background-color: var(--awards-footer-bg) !important;
}

footer.footer-desktop {
    background-color: var(--awards-footer-bg) !important;
    background-image: none !important;
}
