:root {

    --navbar-height: 5rem;

    --black: #2f2e2e;
    --gray: #999;
    --white: #fffefe;
    --red: #e10032;
    --blue: #001d55;
    --green: #02d85f;
    --yellow: #ffce3c;

}

* {

    --sc-color: #c2c2c2;
    --sc-bg-color: #fafafa;

}

body {
    color: var(--black);
    background: var(--white);
}

img {
    width: 100%;
    height: auto;
}

.row-center {
    align-items: center;
}

.container {
    width: 100%;
    max-width: 70rem;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.heading {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

p {
    font-weight: 300;
    font-size: 1.125rem;
}

ul {

    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-left: 1rem;
    font-weight: 300;
    font-size: 1.125rem;

    span {
        font-weight: 500;
    }

}

/* Social Icons */

.social-icons {

    display: flex;
    gap: 0.8rem;
    margin: 0 auto;
    margin-top: 1.5rem;
    color: var(--gray);
    margin-bottom: 1rem;

    a:hover {
        color: var(--black);
    }

}

/* Nav */

.nav-div {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border: 1px solid rgba(56, 56, 56, 0.12);
    z-index: 9999;
}

nav {

    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 60rem;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem 2rem;

    &.container {
        padding-block: 1rem 1rem;
    }

    a {

        cursor: pointer;
        border-radius: 8px;
        padding: 0.75rem 1.625rem;
        font-size: 0.9rem;
        border: 1px solid rgba(56, 56, 56, 0.12);

        &:hover, &:active, &.active {
            color: var(--white);
            background: var(--blue);
        }

    }

    .action {

        color: var(--red);

        &:hover {
            color: var(--white);
            background: var(--red);
        }

    }

    img {
        width: 1rem;
        margin-right: 0.5rem;
    }

    .btn-6 {
        font-weight: normal;
        color: var(--black);
        background: var(--white);
        border: 1px solid rgba(56, 56, 56, 0.12);
    }

}

/* Highlighted CTA button (nav) */
.nav-div nav a.btn-cta,
.nav-div nav a.action {
    color: var(--white);
    background: var(--red);
    border: 1px solid var(--red);
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.nav-div nav a.btn-cta:hover,
.nav-div nav a.btn-cta:active,
.nav-div nav a.btn-cta.active,
.nav-div nav a.action:hover,
.nav-div nav a.action:active,
.nav-div nav a.action.active {
    color: var(--white);
    background: #c9002b; /* slightly darker red on hover */
    border-color: #c9002b;
    box-shadow: 0 6px 14px -4px rgba(225, 0, 50, 0.6);
    transform: translateY(-1px);
}

.nav-div nav a.btn-cta:active,
.nav-div nav a.action:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px -4px rgba(225, 0, 50, 0.5);
}

.nav-div nav a.btn-cta:focus-visible,
.nav-div nav a.action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(225, 0, 50, 0.5);
}

@media (max-width: 768px) {
    * {
        --navbar-height: 0;
    }
}

/* Section 1 */

.section-1 {

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;

    .container {
        padding-block: 1.5rem 0;
    }

    img {
        display: block;
    }

    p {
        max-width: 26rem;
        font-size: 1rem;
        font-weight: 200;
    }

    @media (max-width: 768px) {
        & {
            background: var(--red);
        }

        .container {
            padding: 0;
        }
    }

}

/* Section 2 */

.section-2, .section-5 {

    color: #f0f0f0;
    background: var(--blue);
    border-bottom: 0.4rem solid #0043c4;

    img {
        display: block;
        margin: 0 auto;
        max-width: 10rem;
    }

    span {
        font-weight: 500;
    }

}

/* Ensure mentors title is pure white */
.section-5 .heading { color: #fff; }

/* Section: Feature Video */
.section-video {
    background: #ffffff;
    padding: 2rem 0;
}

.section-video .container {
    padding-block: 1rem 1.5rem;
}

.section-video .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.section-video .video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

/* Mentor banner image sizing */
.section-5 img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mentor carousel */
.mentor-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.mentor-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-height: 50vh;
    scroll-behavior: smooth;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.mentor-viewport::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.mentor-track {
    display: flex;
    flex-direction: row;
    gap: 0; /* Remove gap between images */
    margin: 0;
    padding: 0;
    list-style: none;
    width: max-content; /* Allow track to extend beyond container */
}

.mentor-slide {
    flex: 0 0 auto; /* Don't shrink, size based on content */
    display: flex;
}

.mentor-slide img {
    display: block;
    width: auto;
    height: auto;
    max-height: 35vh;
    object-fit: contain;
    border-radius: 0; /* Remove border radius to eliminate gaps */
    box-shadow: none; /* Remove shadow to eliminate visual gaps */
    margin-right: 1rem;
}

.mentor-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.mentor-prev {
    left: 8px;
}

.mentor-next {
    right: 8px;
}

.mentor-nav:hover {
    background: rgba(0,0,0,0.8);
}

.mentor-nav:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Hide nav when all content is visible (no overflow) */
.mentor-carousel.no-nav .mentor-nav {
    display: none;
}

/* Center items when fewer than per-view */
.mentor-carousel.no-nav .mentor-track {
    justify-content: center;
}

@media (max-width: 767px) {
    .mentor-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .mentor-prev { left: 4px; }
    .mentor-next { right: 4px; }
}

/*!* Mentor carousel *!*/
/*.mentor-carousel {*/
/*    position: relative;*/
/*    width: 100%;*/
/*    max-width: 1200px;*/
/*    margin: 0 auto;*/
/*}*/

/*.mentor-viewport {*/
/*    overflow: hidden;*/
/*    width: 100%;*/
/*    max-height: 50vh; !* clamp mentors to half screen *!*/
/*}*/

/*.mentor-track {*/
/*    --gap: 1rem;*/
/*    --per-view: 1;*/
/*    display: flex;*/
/*    flex-direction: row; !* horizontal row *!*/
/*    gap: var(--gap);*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    list-style: none;*/
/*    transition: transform .4s ease;*/
/*    will-change: transform;*/
/*}*/

/*.mentor-slide {*/
/*    !* Visible multiple per row; width responsive to --per-view *!*/
/*    flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));*/
/*}*/

/*.mentor-slide img {*/
/*    display: block;*/
/*    width: auto;*/
/*    height: auto;*/
/*    max-height: 50vh; !* image height <= 50% of viewport *!*/
/*    object-fit: contain; !* avoid cropping *!*/
/*    border-radius: 12px;*/
/*    box-shadow: 0 12px 24px rgba(0,0,0,0.08);*/
/*}*/

/*.mentor-nav {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    border-radius: 999px;*/
/*    border: none;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    background: rgba(0,0,0,0.4);*/
/*    color: #fff;*/
/*    cursor: pointer;*/
/*    z-index: 2;*/
/*}*/

/*.mentor-prev { left: 8px; }*/
/*.mentor-next { right: 8px; }*/

/*.mentor-nav:hover { background: rgba(0,0,0,0.55); }*/

/*@media (min-width: 768px) {*/
/*    .mentor-slide { flex-basis: 100%; }*/
/*}*/

/*!* Hide nav when not needed *!*/
/*.mentor-carousel.no-nav .mentor-nav { display: none; }*/

/* Section 3 */

.section-3 {

    img {
        display: block;
        max-width: 15rem;
        margin: 0 auto;
    }

    span {
        font-weight: 500;
    }

}

/* Section 4 */

.section-4 {

    img {
        display: block;
        width: 18rem;
        margin: 0 auto;
    }

    .content {

        display: flex;
        flex-direction: column;
        gap: 1rem;
        font-weight: 400;
        font-size: 1.125rem;

        span {
            font-weight: 500;
        }

    }

}

/* Section 5 */

.section-5 {

    text-align: center;

    .heading {
        font-weight: 400;
        font-size: 1.9rem;
        letter-spacing: 0.05em;
        word-spacing: normal;
        text-transform: none;
    }

    p {
        margin-top: 2rem;
        font-weight: 300;
        font-size: 1.125rem;
    }

    .strong {
        margin-top: 1rem;
        font-weight: 400;
        font-size: 1.25rem;
    }

}

/* Section 6 */

.section-6 {

    img {
        display: block;
        margin: 0 auto;
        max-width: 22rem;
    }

    .row {
        margin-bottom: 3rem;
    }

    .heading {
        text-align: center;
    }

    .content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        font-weight: 300;
        font-size: 1.125rem;
    }
}

/* Partners & Referrals (AUHT) */
#partners .auht-logos-wrap {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    background: #fff;
    padding: 0.75rem;
}

#partners .auht-logos {
    overflow: hidden;
    padding-block: 1rem;
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

#partners .auht-logos .logos-slide {
    display: flex;
    align-items: center;
    width: fit-content;
    animation: scroll-left 22.5s linear infinite;
}

#partners .auht-logos .logos-slide.reverse {
    animation: scroll-right 22.5s linear infinite;
}

#partners .auht-logos img {
    height: 4rem;
    width: auto;
    margin-inline: 2rem;
    flex-shrink: 0;
    object-fit: contain;
}

/*#partners .auht-logos + .auht-logos {*/
/*    margin-top: 0.75rem;*/
/*}*/

/* AUHT: Embedded Event Registration UI */
#event-form-overlay {
    backdrop-filter: blur(2px);
}

#event-register-embed .card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

#event-register-embed .card-body {
    padding: 0.25rem 0 0 0;
}

#event-register-embed .form-group {
    margin-bottom: 0.9rem;
}

#event-register-embed label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

#event-register-embed input[type="text"],
#event-register-embed input[type="email"],
#event-register-embed input[type="number"],
#event-register-embed select,
#event-register-embed textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    outline: none;
}

#event-register-embed input::placeholder,
#event-register-embed textarea::placeholder {
    color: #9aa0a6;
}

#event-register-embed small.form-text {
    display: block;
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 0.85rem;
}

/* Validation messages: hidden by default, shown only when invalid */
#event-register-embed .invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

#event-register-embed .invalid .invalid-feedback,
#event-register-embed .form-group.invalid .invalid-feedback {
    display: block;
}

#event-register-embed #custom-invalid-email,
#event-register-embed [id^="custom-invalid-"] {
    color: #dc3545;
    font-size: 0.85rem;
}

/* Checkbox alignment */
#event-register-embed .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
#event-register-embed .btn,
#event-form-overlay .btn {
    display: inline-block;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* OTP buttons */
#otp-send-btn {
    background: #f3f4f6 !important;
    color: #333 !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
}

#event-register-embed .btn-block { width: 100%; }

#event-register-embed .btn-danger,
#event-register-embed .btn-dark,
#event-form-overlay .btn.btn-cta {
    color: var(--white);
    background: var(--red);
}

#event-register-embed .btn-danger:hover,
#event-register-embed .btn-dark:hover {
    filter: brightness(0.95);
}

/* Heading tweaks inside embedded form */
#event-register-embed h4.text-danger {
    margin: 0.25rem 0 0.75rem 0;
}

/* Mobile fixes for the embedded content */
@media (max-width: 768px) {
    #event-form-overlay > div { max-height: 90vh; }
    #event-register-embed .form-group { margin-bottom: 0.8rem; }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Section 7 */

.section-7 {

    color: var(--white);
    background: var(--red);
    border-bottom: 0.4rem solid #ff0038;

    img {
        display: block;
    }

    .btn-action {
        margin-top: 1.5rem;
        border-radius: 8px;
        color: var(--white);
        background: var(--black);
    }

}

/* Override global landing styles that target #benefits */
#benefits.section-7 {
    background: var(--red);
}

/* Section 8 */

.section-8 {

    text-align: center;

    iframe {
        width: 100%;
        max-width: 32rem;
        min-height: 18rem;
        border-radius: 1rem;
    }

}

/* Section 9 */

.section-9 {

    img {
        display: block;
        margin: 0 auto;
        max-width: 10rem;
    }

    span {
        font-weight: 600;
    }

}

/* Section 10 */

.section-10 {

    img {
        display: block;
        margin: 0 auto;
        max-width: 15rem;
    }

    .heading {
        font-size: 2rem;
        text-align: center;
    }

}

/* Testimonials */

#testimonials {

    background: var(--yellow);

    .heading {
        text-align: center;
    }

    .hearts {
        height: 1rem;
    }

    .card-testimonial {

        background: #fafafa;
        border: 1px solid rgba(0, 0, 0, 0.05);

        .testimonial-link img {
            border: 0;
        }

        .content.highlight {
            color: #f0f0f0;
            background: var(--red);
        }

    }

    .br-rotate {
        --br-color: var(--red);
    }

}

/* Bottom Bar */

.bottom-bar {

    color: var(--white);
    background: var(--black);

    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }

    .btn {
        border-radius: 2rem;
        background: var(--red);
    }

}

/* Mobile CTA sizing */
@media (max-width: 768px) {
    .bottom-bar .btn-mobile-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 12rem;
        padding: 0.75rem 1.25rem;
        font-weight: 600;
        border-radius: 999px;
        box-shadow: 0 6px 14px -4px rgba(225, 0, 50, 0.5);
    }

    .bottom-bar .btn-mobile-cta:active {
        transform: translateY(1px);
        box-shadow: 0 3px 8px -4px rgba(225, 0, 50, 0.5);
    }
}

/* Tab */

.tab-content {
    display: none;
    animation: fade 1s;
}

@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* File Input */

.custom-file {
    position: relative;
    display: flex;
    width: 100%;
    height: 2.25rem;
    margin-bottom: 1rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    margin: 0;
    overflow: hidden;
    opacity: 0;
}

.custom-file-label {
    position: absolute;
    inset: 0;
    z-index: 1;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    overflow: hidden;
    font-weight: 400;
    font-size: .875rem;
    line-height: 1.25rem;
    color: #495057;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: calc(0.5rem - 2px);
}
