:root {
    --brand-primary: #0a3d62;
    --brand-accent: #f39c12;
    --brand-soft: #f7f9fc;
    --sticky-nav-height: 72px;
}

body {
    background: linear-gradient(180deg, #ffffff 0%, var(--brand-soft) 100%);
}

.navbar-brand-logo {
    height: 60px;
    width: auto;
    display: block;
}

.hero-panel {
    background: radial-gradient(circle at top right, #dfe9ff 0%, #ffffff 45%);
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 2rem;
}

.hero-carousel-wrap {
    position: relative;
    width: 100%;
    margin: 0;
}

.hero-carousel-image {
    height: calc(100vh - var(--sticky-nav-height));
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-carousel-wrap .carousel-item {
    height: calc(100vh - var(--sticky-nav-height));
}

.hero-carousel-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 3rem;
    color: #fff;
    max-width: 760px;
    z-index: 5;
    pointer-events: auto;
}

.hero-carousel-content {
    background: linear-gradient(140deg, rgba(8, 24, 45, 0.74), rgba(8, 24, 45, 0.36));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    padding: 1.5rem 1.75rem;
    max-width: 680px;
    pointer-events: auto;
}

.hero-carousel-overlay .lead {
    color: rgba(255, 255, 255, 0.95);
}

.hero-carousel-wrap .carousel-control-prev,
.hero-carousel-wrap .carousel-control-next,
.hero-carousel-wrap .carousel-indicators {
    z-index: 3;
}

@media (max-width: 768px) {
     :root {
        --sticky-nav-height: 64px;
    }
    .navbar-brand-logo {
        height: 36px;
    }
    .hero-carousel-image {
        height: calc(100vh - var(--sticky-nav-height));
    }
    .hero-carousel-wrap .carousel-item {
        height: calc(100vh - var(--sticky-nav-height));
    }
    .hero-carousel-overlay {
        padding: 1.25rem;
        max-width: 100%;
    }
    .hero-carousel-content {
        padding: 1rem 1.1rem;
        max-width: 100%;
    }
}

.section-card {
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    background: #fff;
}

.home-info-cards .section-card {
    min-height: 180px;
    box-shadow: 0 10px 24px rgba(10, 61, 98, 0.08);
}

.home-info-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-info-link .section-card {
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-info-link:hover .section-card,
.home-info-link:focus-visible .section-card {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(10, 61, 98, 0.14);
    border-color: #bfd4ea;
}

.home-info-cta {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1f5f8b;
}

.apply-edition-row {
    min-height: 56px;
}

.apply-edition-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apply-edition-start {
    align-self: center;
}


/* FAQ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #e4eaf0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-question,
.faq-answer {
    display: flex;
    gap: 0.75rem;
    margin: 0;
    line-height: 1.6;
}

.faq-question {
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.35rem;
}

.faq-label {
    flex-shrink: 0;
    font-weight: 800;
    min-width: 1.25rem;
}

.faq-question .faq-label {
    color: var(--brand-accent);
}

.faq-answer .faq-label {
    color: #6c757d;
}

.home-info-cards .section-card .h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.home-info-cards .section-card .small-note {
    font-size: 1rem;
    line-height: 1.55;
}

.small-note {
    font-size: 0.9rem;
    color: #5d6878;
}

.form-required::after {
    content: ' *';
    color: #dc3545;
}

.application-form .apply-step-title {
    margin-top: 2.25rem;
    margin-bottom: 1.1rem;
}

.application-form .apply-step-title:first-of-type {
    margin-top: 0;
}

.application-form #add-repertoire-btn {
    min-width: 180px;
}

.application-form .select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
}

.application-form .select2-container--bootstrap-5 .select2-selection__rendered {
    line-height: 1.4;
}

.application-form .select2-container--bootstrap-5 .select2-dropdown {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .application-form .select2-container {
        width: 100% !important;
    }
    .application-form .select2-container--bootstrap-5 .select2-selection {
        min-height: 44px;
    }
    .application-form .select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
        min-height: 40px;
        font-size: 16px;
    }
    .application-form .select2-results__option {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    .application-form [data-repertoire-item] .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    .application-form [data-repertoire-item] [data-remove-repertoire] {
        align-self: flex-end;
    }
    .application-form #add-repertoire-btn {
        width: 100%;
    }
}