/* JTI Decathlon — enhancement layer (hand-built additions on top of the base theme) */

html { scroll-behavior: smooth; }
/* Offset anchored sections so the sticky header doesn't cover their titles */
:target { scroll-margin-top: 120px; }
#about, #schedule, #contact, #home { scroll-margin-top: 120px; }

/* ---- Countdown band ---- */
.countdown-band {
    background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
    border-top: 3px solid var(--bs-primary, #FB5B21);
    border-bottom: 3px solid var(--bs-primary, #FB5B21);
}
.countdown-box {
    background: #111;
    border-radius: .5rem;
    padding: 1.25rem .5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: transform .25s ease;
}
.countdown-box:hover { transform: translateY(-4px); }
.cd-num {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    line-height: 1;
    color: var(--bs-primary, #FB5B21);
}
.cd-label {
    display: block;
    margin-top: .35rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .8rem;
    color: #bbb;
}
.countdown-live .cd-num { animation: cd-pulse 1s ease; }
@keyframes cd-pulse { 0% { opacity: .4; } 100% { opacity: 1; } }
#countdown.concluded { max-width: 720px; margin: 0 auto; }
.countdown-message {
    text-align: center;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Schedule search ---- */
.schedule-search {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 50px;
    padding: .35rem 1.2rem;
    max-width: 100%;
    width: 420px;
}
.schedule-search .form-control {
    background: transparent;
    border: 0;
    color: #fff;
    box-shadow: none;
}
.schedule-search .form-control::placeholder { color: #777; }
.schedule-card { transition: opacity .2s ease, transform .2s ease; }
.schedule-card .bg-dark { transition: transform .25s ease, box-shadow .25s ease; }
.schedule-card .bg-dark:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
}
.schedule-card.is-hidden { display: none !important; }
mark.hl { background: var(--bs-primary, #FB5B21); color: #111; padding: 0 2px; border-radius: 3px; }

/* ---- Mobile polish ---- */
@media (max-width: 991.98px) {
    .carousel-caption h1 { font-size: 2rem; }
    .carousel-caption h5 { font-size: .95rem; }
    .carousel-caption .btn { padding: .5rem 1.1rem; font-size: .85rem; margin-bottom: .4rem; }
    .container-fluid.p-5 { padding: 2rem 1.25rem !important; }
    .display-3 { font-size: 2.2rem; }
    .tab-class .nav-pills { border-radius: 1rem; }
    .tab-class .nav-pills .nav-link { padding: .5rem .9rem; font-size: .8rem; }
}
@media (max-width: 575.98px) {
    .countdown-box { padding: .9rem .35rem; }
    .rounded.bg-dark.p-5 { padding: 1.5rem !important; }
}

/* Back-to-top: circular, primary */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: none;
    width: 46px;
    height: 46px;
    z-index: 99;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}
.back-to-top i { line-height: 46px; }
