/* NYCBC AI custom layer */
:root {
    --nycbc-deep: #081a43;
    --nycbc-purple: #6f4bff;
    --nycbc-cyan: #24d9ff;
}

.logo-part img,
.responsive-logo img,
.canvas-logo img {
    max-height: 58px;
    width: auto;
    object-fit: contain;
}

.rs-banner.style4 {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #f7f8fc !important;
}

.nycbc-hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #f7f8fc;
}

.nycbc-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,rgba(250,251,255,.97) 0%,rgba(248,249,255,.86) 31%,rgba(248,249,255,.18) 57%,rgba(8,16,50,.10) 100%);
}

.rs-banner.style4 .container.relative {
    z-index: 3;
}

.rs-banner.style4 .banner-content {
    padding-top: 105px;
    padding-bottom: 70px;
    position: relative;
    z-index: 4;
}

.rs-banner.style4 .banner-title {
    color: var(--nycbc-deep) !important;
    text-shadow: 0 2px 18px rgba(255,255,255,.55);
    max-width: 650px;
}

.rs-banner.style4 .desc {
    color: #263651 !important;
    font-size: 19px;
    line-height: 1.7;
    max-width: 600px;
}

.rs-banner.style4 .banner-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nycbc-secondary-btn {
    background: rgba(8,26,67,.92) !important;
    border-color: rgba(8,26,67,.92) !important;
}

.ai-network-flow {
    position: absolute;
    inset: 52% -10% -25% -10%;
    z-index: 2;
    pointer-events: none;
    opacity: .55;
    mix-blend-mode: screen;
    background: radial-gradient(circle at 20% 30%, rgba(120,94,255,.42), transparent 24%), radial-gradient(circle at 55% 55%, rgba(36,217,255,.38), transparent 28%), radial-gradient(circle at 80% 45%, rgba(170,75,255,.34), transparent 25%);
    filter: blur(8px);
    animation: nycbcFlow 7s ease-in-out infinite alternate;
}

.ai-glasses-glint {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    left: 61.6%;
    top: 12.3%;
    width: 10.5%;
    height: 7.5%;
    transform: rotate(8deg);
    border-radius: 50%;
    opacity: 0;
    background: linear-gradient(105deg, transparent 10%, rgba(255,255,255,.95) 45%, rgba(90,220,255,.7) 52%, transparent 63%);
    filter: blur(1.8px);
    animation: nycbcGlint 5.5s ease-in-out infinite;
}

@keyframes nycbcGlint {
    0%,
    66%,
    100% {
        opacity: 0;
        transform: translateX(-14px) rotate(8deg);
    }

    72% {
        opacity: .12;
    }

    78% {
        opacity: .72;
        transform: translateX(8px) rotate(8deg);
    }

    84% {
        opacity: .12;
    }
}

@keyframes nycbcFlow {
    from {
        transform: translate3d(-1.5%,0,0) scale(1);
    }

    to {
        transform: translate3d(1.5%,-2%,0) scale(1.05);
    }
}

@media (max-width:991px){
    .rs-banner.style4 {
        min-height: 560px;
    }

    .nycbc-hero-photo {
        object-position: center center;
    }

    .rs-banner.style4 .banner-content {
        padding-top: 85px;
        padding-bottom: 55px;
    }

    .ai-glasses-glint {
        display: none;
    }
}

@media (max-width:767px){
    .rs-banner.style4 {
        min-height: 0;
        display: flex;
        flex-direction: column;
        background: #f7f8fc !important;
    }

    .nycbc-hero-photo {
        position: relative;
        inset: auto;
        order: 0;
        width: 100%;
        height: fit-content;
        aspect-ratio: 16/9;
        object-fit: contain;
        object-position: center center;
        background: #eef1fb;
    }

    .nycbc-hero-shade {
        display: none;
    }

    .rs-banner.style4>.container {
        order: 1;
        width: 100%;
        background: #f7f8fc;
    }

    .rs-banner.style4 .banner-content {
        padding-top: 48px;
        padding-bottom: 54px;
    }

    .rs-banner.style4 .banner-title {
        font-size: 42px !important;
    }

    .rs-banner.style4 .desc {
        font-size: 17px;
    }

    .rs-banner.style4 .banner-line-shape,
    .rs-banner.style4 .banner-circle-shape,
    .rs-banner.style4 .banner-dots-shape {
        display: none;
    }

    .nycbc-data-overlay {
        top: 0;
        bottom: auto;
        height: auto;
        aspect-ratio: 16/9;
    }

    .rs-banner.style4:before {
        height: auto;
        aspect-ratio: 16/9;
        bottom: auto;
    }
}

/* NYCBC Firebase authentication */
.nycbc-auth-message {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.nycbc-auth-message.error {
    background: #fff0f0;
    color: #a12626;
    border: 1px solid #f0b8b8;
}

.nycbc-auth-message.success {
    background: #effaf2;
    color: #1c6b35;
    border: 1px solid #b8e2c4;
}

.nycbc-auth-note {
    background: #f7f5ff;
    border-left: 4px solid #6f42c1;
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: 6px;
}

.nycbc-password-link {
    display: inline-block;
    margin-top: 10px;
}

.nycbc-dashboard-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(31,31,45,.08);
    height: 100%;
}

.nycbc-dashboard-hero {
    background: linear-gradient(135deg,#231942,#5e2b97);
    color: #fff;
    padding: 55px 0;
}

.nycbc-dashboard-hero h1,
.nycbc-dashboard-hero p {
    color: #fff;
}

.nycbc-video-placeholder {
    aspect-ratio: 16/9;
    background: #10121a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 30px;
}

.nycbc-video-placeholder strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

/* NYCBC course portal v6 */
.nycbc-course-shell {
    background: #f5f7fb;
    min-height: 100vh;
}

.nycbc-course-header {
    background: #fff;
    border-bottom: 1px solid #e8ebf2;
    position: sticky;
    top: 0;
    z-index: 20;
}

.nycbc-course-header .container {
    min-height: 72px;
}

.nycbc-course-logo {
    height: 45px;
    width: auto;
}

.nycbc-eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 700;
    color: #6f4bff;
}

.nycbc-page-title {
    color: #081a43;
}

.nycbc-module-card {
    background: #fff;
    border: 1px solid #e8ebf2;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 28px rgba(31,42,68,.06);
}

.nycbc-video-frame {
    position: relative;
    padding-top: 56.25%;
    background: #0b1020;
    border-radius: 14px;
    overflow: hidden;
}

.nycbc-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.nycbc-video-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.nycbc-video-status {
    font-size: .9rem;
    font-weight: 600;
}

.nycbc-video-status.complete {
    color: #198754;
}

.nycbc-video-status.pending {
    color: #6c757d;
}

.nycbc-part-progress {
    height: 12px;
    border-radius: 999px;
}

.nycbc-lock-panel {
    background: #fff8e6;
    border: 1px solid #f0d79c;
    border-radius: 14px;
    padding: 18px;
}

.nycbc-overview-layout {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(280px,.8fr);
    gap: 24px;
    align-items: start;
}

.nycbc-overview-outline {
    position: sticky;
    top: 92px;
    max-height: 70vh;
    overflow: auto;
    padding-right: 6px;
}

.nycbc-overview-item {
    border-left: 4px solid #d9ddea;
    padding: 13px 14px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 0 12px 12px 0;
    transition: .2s ease;
}

.nycbc-overview-item.active {
    border-left-color: #6f4bff;
    background: #f2efff;
    transform: translateX(2px);
}

.nycbc-overview-item.complete {
    border-left-color: #198754;
}

.nycbc-overview-item h4 {
    font-size: 1rem;
    margin: 0 0 4px;
    color: #081a43;
}

.nycbc-overview-item p {
    margin: 0;
    font-size: .9rem;
    color: #5e687d;
}

.nycbc-gate {
    max-width: 760px;
    margin: 60px auto;
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    border: 1px solid #e8ebf2;
}

.nycbc-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nycbc-checklist li {
    padding: 10px 0;
    border-bottom: 1px solid #eef0f5;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.nycbc-checklist li:last-child {
    border-bottom: 0;
}

.nycbc-mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef1f7;
    font-size: .78rem;
    font-weight: 700;
}

.nycbc-mini-badge.done {
    background: #e8f7ee;
    color: #13713a;
}

.nycbc-mini-badge.locked {
    background: #fff4dc;
    color: #8a5a00;
}

.nycbc-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.nycbc-hidden {
    display: none!important;
}

.nycbc-exam-frame {
    width: 100%;
    min-height: 650px;
    border: 0;
    border-radius: 14px;
    background: #fff;
}

.nycbc-bonus-lock {
    background: linear-gradient(135deg,#21183e,#50338d);
    color: #fff;
    border-radius: 18px;
    padding: 28px;
}

.nycbc-bonus-lock h3,
.nycbc-bonus-lock p {
    color: #fff;
}

.nycbc-welcome-video {
    max-width: 960px;
    margin: 0 auto;
}

.nycbc-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.nycbc-dashboard-stat {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #e8ebf2;
}

.nycbc-dashboard-stat strong {
    font-size: 1.8rem;
    color: #081a43;
    display: block;
}

.nycbc-section-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

.nycbc-section-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid #e8ebf2;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    color: #081a43;
    text-decoration: none;
}

.nycbc-section-link.locked {
    opacity: .55;
    pointer-events: none;
}

.nycbc-section-link:hover {
    border-color: #6f4bff;
}

.nycbc-note {
    font-size: .9rem;
    color: #657086;
}

.nycbc-vimeo-help {
    font-size: .85rem;
    color: #6c757d;
    margin-top: 8px;
}

@media (max-width:991px){
    .nycbc-overview-layout {
        grid-template-columns: 1fr;
    }

    .nycbc-overview-outline {
        position: static;
        max-height: none;
    }

    .nycbc-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .nycbc-section-list {
        grid-template-columns: 1fr;
    }
}

/* NYCBC lesson review v10 */
.nycbc-lesson-review {
    margin-top: 34px;
    background: #fff;
    border: 1px solid #e7eaf2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(31,42,68,.07);
}

.review-header {
    padding: 34px 36px 28px;
    background: linear-gradient(135deg,#f8f6ff 0%,#eefaff 100%);
    border-bottom: 1px solid #e7eaf2;
}

.review-header h2 {
    margin: 0;
    color: #081a43;
    font-size: clamp(1.65rem,2.5vw,2.25rem);
}

.review-intro {
    max-width: 850px;
    margin: 12px 0 0;
    color: #536078;
    font-size: 1.03rem;
    line-height: 1.75;
}

.review-layout {
    display: grid;
    grid-template-columns: 230px minmax(0,1fr);
    gap: 34px;
    padding: 34px 36px 42px;
}

.review-nav {
    position: sticky;
    top: 100px;
    align-self: start;
    border-right: 1px solid #edf0f5;
    padding-right: 22px;
    max-height: 72vh;
    overflow: auto;
}

.review-nav strong {
    display: block;
    color: #081a43;
    margin-bottom: 10px;
}

.review-nav a {
    display: block;
    padding: 7px 0;
    color: #667085;
    text-decoration: none;
    font-size: .92rem;
    line-height: 1.3;
}

.review-nav a:hover {
    color: #6f4bff;
}

.review-content {
    min-width: 0;
    color: #344054;
    font-size: 1rem;
    line-height: 1.8;
}

.review-content h3 {
    scroll-margin-top: 95px;
    color: #081a43;
    font-size: 1.35rem;
    margin: 34px 0 14px;
    padding-top: 2px;
}

.review-content h3:first-child {
    margin-top: 0;
}

.review-content h4 {
    color: #24355a;
    font-size: 1.05rem;
    margin: 23px 0 8px;
}

.review-content p {
    margin: 0 0 16px;
}

.review-content ul,
.review-content ol {
    padding-left: 1.35rem;
    margin-bottom: 18px;
}

.review-content li {
    margin-bottom: 7px;
}

.review-vocab-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin: 18px 0 26px;
}

.review-vocab-card {
    border: 1px solid #e5e8f0;
    border-radius: 14px;
    padding: 16px 17px;
    background: #fbfcff;
}

.review-vocab-card h4 {
    margin: 0 0 6px;
    color: #5138b8;
    font-size: 1rem;
}

.review-vocab-card p {
    margin: 0;
    color: #536078;
    line-height: 1.55;
    font-size: .94rem;
}

.review-callout,
.review-highlight {
    border-radius: 12px;
    padding: 15px 17px!important;
    margin: 20px 0!important;
}

.review-callout {
    background: #f4f9ff;
    border-left: 4px solid #24a8d8;
}

.review-highlight {
    background: #faf7ff;
    border-left: 4px solid #6f4bff;
}

.review-question-list {
    list-style: none!important;
    padding-left: 0!important;
    counter-reset: q;
}

.review-question-list>li {
    border: 1px solid #e6e9f0;
    border-radius: 14px;
    padding: 17px 18px;
    margin: 14px 0!important;
    background: #fff;
}

.review-question-text {
    font-weight: 700;
    color: #24355a;
    margin-bottom: 8px;
}

.review-options {
    margin: 0!important;
    padding-left: 1.45rem!important;
}

.review-answers {
    margin: 22px 0;
    border: 1px solid #dfe4ee;
    border-radius: 14px;
    background: #fbfcff;
    padding: 14px 17px;
}

.review-answers summary {
    cursor: pointer;
    font-weight: 700;
    color: #5138b8;
}

.review-answers ol {
    margin-top: 12px;
}

.review-content em {
    color: #667085;
}

@media (max-width:991px){
    .review-layout {
        grid-template-columns: 1fr;
    }

    .review-nav {
        position: static;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid #edf0f5;
        padding: 0 0 18px;
        display: flex;
        flex-wrap: wrap;
        gap: 7px 14px;
    }

    .review-nav strong {
        width: 100%;
    }

    .review-nav a {
        padding: 2px 0;
    }

    .review-vocab-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:767px){
    .review-header {
        padding: 26px 22px;
    }

    .review-layout {
        padding: 24px 22px 32px;
        gap: 22px;
    }

    .nycbc-lesson-review {
        border-radius: 16px;
    }

    .review-content {
        font-size: .98rem;
    }
}

/* Part 8 downloadable course book */
.nycbc-download-card {
    border: 1px solid rgba(22,57,94,.12);
}

.nycbc-download-preview {
    min-height: 180px;
    border-radius: 18px;
    padding: 28px;
    background: linear-gradient(145deg,#0e2e4f,#164b78);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.nycbc-download-preview strong {
    font-size: 1.35rem;
    line-height: 1.2;
}

.nycbc-download-preview small {
    color: rgba(255,255,255,.78);
}

.nycbc-download-preview .nycbc-mini-badge {
    align-self: flex-start;
    background: #d7aa38;
    color: #102c48;
}

/* NYCBC animated homepage data transmission overlay v13 */
.rs-banner.style4 {
    position: relative;
    overflow: hidden;
}

.rs-banner.style4>.container,
.rs-banner.style4 .banner-dots-shape {
    position: relative;
    z-index: 4;
}

.nycbc-data-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: screen;
}

.nycbc-data-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .92;
}

.nycbc-data-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nycbc-data-path.nycbc-base {
    stroke: rgba(96,197,255,.17);
    stroke-width: 2.6;
}

.nycbc-data-path.nycbc-flow {
    stroke: url(#nycbcFlowGradient);
    stroke-width: 4;
    stroke-dasharray: 235 1375;
    stroke-dashoffset: 1610;
    filter: drop-shadow(0 0 8px rgba(164,90,255,.58)) drop-shadow(0 0 14px rgba(55,208,255,.38));
    animation: nycbcDataTransmit 7.2s linear infinite;
}

.nycbc-data-path.nycbc-delay-1 {
    animation-delay: 1.65s;
}

.nycbc-data-path.nycbc-delay-2 {
    animation-delay: 3.1s;
}

@keyframes nycbcDataTransmit{
    0% {
        stroke-dashoffset: 1610;
        opacity: 0;
    }

    8% {
        opacity: .8;
    }

    45% {
        opacity: 1;
    }

    92% {
        opacity: .7;
    }

    100% {
        stroke-dashoffset: -420;
        opacity: 0;
    }
}

.nycbc-spark {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle,#fff 0 18%,rgba(195,127,255,.95) 38%,rgba(62,212,255,.48) 58%,transparent 76%);
    box-shadow: 0 0 7px rgba(255,255,255,.9),0 0 15px rgba(171,96,255,.75),0 0 25px rgba(47,209,255,.45);
    animation: nycbcSpark 5.8s ease-in-out infinite;
}

.nycbc-spark:before,
.nycbc-spark:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: rgba(255,255,255,.76);
    border-radius: 2px;
    transform: translate(-50%,-50%);
}

.nycbc-spark:before {
    width: 19px;
    height: 1.5px;
}

.nycbc-spark:after {
    width: 1.5px;
    height: 19px;
}

.nycbc-spark.sp1 {
    left: 17%;
    top: 68%;
    animation-delay: .2s;
}

.nycbc-spark.sp2 {
    left: 35%;
    top: 74%;
    animation-delay: 1.5s;
}

.nycbc-spark.sp3 {
    left: 58%;
    top: 69%;
    animation-delay: 2.7s;
}

.nycbc-spark.sp4 {
    left: 79%;
    top: 66%;
    animation-delay: 3.9s;
}

.nycbc-spark.sp5 {
    left: 90%;
    top: 73%;
    animation-delay: 5s;
}

@keyframes nycbcSpark{
    0%,
    100% {
        opacity: 0;
        transform: scale(.55);
    }

    12% {
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    28% {
        opacity: .9;
        transform: scale(1.22);
    }

    39% {
        opacity: 0;
        transform: scale(.72);
    }
}

.rs-banner.style4:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(112deg,transparent 24%,rgba(111,75,255,.035) 42%,rgba(36,217,255,.075) 50%,transparent 60%);
    transform: translateX(-125%);
    animation: nycbcHeroSweep 12s ease-in-out infinite;
}

@keyframes nycbcHeroSweep{
    0%,
    18%,
    100% {
        transform: translateX(-125%);
        opacity: 0;
    }

    32% {
        opacity: .8;
    }

    55% {
        transform: translateX(125%);
        opacity: .65;
    }

    68% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion:reduce){
    .nycbc-data-path.nycbc-flow,
    .nycbc-spark,
    .rs-banner.style4:before,
    .ai-glasses-glint {
        animation: none!important;
    }

    .nycbc-data-path.nycbc-flow {
        opacity: .25;
    }

    .nycbc-spark {
        display: none;
    }
}

@media (max-width:767px){
    .nycbc-data-svg {
        opacity: .62;
    }

    .nycbc-spark {
        transform: scale(.8);
    }

    .nycbc-spark.sp1 {
        left: 14%;
    }

    .nycbc-spark.sp4 {
        left: 82%;
    }
}

/* Responsive full-hero image v14: preserve both people on every screen */
@media (min-width:1400px){
    .rs-banner.style4 {
        min-height: clamp(620px,42vw,720px);
    }

    .nycbc-hero-photo {
        object-fit: cover;
        object-position: center center;
    }
}

/* ============================================================
   NYCBC AI v18 responsive hero + compact header overrides
   Goal: keep BOTH hero characters visible on every device,
   reduce excess header height, and avoid inherited theme spacing.
   Keep this block at the END of nycbc-custom.css.
   ============================================================ */
/* Compact desktop/tablet header without editing Educavo core CSS. */
@media (min-width: 992px) {
    .full-width-header.header-style3.modify .rs-header .menu-area,
    .full-width-header.header-style3.modify .rs-header .menu-area .logo-cat-wrap {
        min-height: 80px;
        height: 80px;
        line-height: 80px;
    }

    .full-width-header.header-style3.modify .rs-header .menu-area .logo-part,
    .full-width-header.header-style3.modify .rs-header .menu-area .main-menu .rs-menu ul.nav-menu li > a,
    .full-width-header.header-style3.modify .rs-header .menu-area .expand-btn-inner li.cart-inner .cart-icon,
    .full-width-header.header-style3.modify .rs-header .menu-area .expand-btn-inner .nav-expander {
        height: 80px;
        line-height: 80px;
    }

    .full-width-header.header-style3.modify .rs-header .menu-area .logo-part {
        width: 265px;
    }

    .full-width-header.header-style3.modify .rs-header .menu-area .logo-part img {
        max-height: 48px;
        width: auto;
    }

    .full-width-header.header-style3.modify .rs-header .menu-area .logo-cat-wrap .categories-btn .cat-menu-inner {
        top: 80px;
    }

    /* Keep sticky state equally compact. */
    .full-width-header.header-style3.modify .rs-header .menu-area.sticky,
    .full-width-header.header-style3.modify .rs-header .menu-area.sticky .logo-cat-wrap {
        min-height: 72px;
        height: 72px;
        line-height: 72px;
    }

    .full-width-header.header-style3.modify .rs-header .menu-area.sticky .logo-part,
    .full-width-header.header-style3.modify .rs-header .menu-area.sticky .main-menu .rs-menu ul.nav-menu li > a,
    .full-width-header.header-style3.modify .rs-header .menu-area.sticky .expand-btn-inner li.cart-inner .cart-icon,
    .full-width-header.header-style3.modify .rs-header .menu-area.sticky .expand-btn-inner .nav-expander {
        height: 72px;
        line-height: 72px;
    }
}

/* Hero: always preserve the full 16:9 image instead of cropping it. */
.rs-banner.style4 {
    min-height: clamp(590px, 46vw, 720px) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.nycbc-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: right center !important;
    background: #f7f8fc;
}

/* Neutralize the theme's .pb-13 (249px) only inside this hero. */
.rs-banner.style4 .banner-content.pb-13,
.rs-banner.style4 .banner-content {
    padding-top: clamp(68px, 7vw, 96px) !important;
    padding-bottom: 32px !important;
}

/* Let the fade on the left blend naturally into any contain letterbox area. */
.nycbc-hero-shade {
    background: linear-gradient(90deg,
    rgba(250,251,255,.99) 0%,
    rgba(248,249,255,.94) 28%,
    rgba(248,249,255,.58) 43%,
    rgba(248,249,255,.12) 61%,
    rgba(8,16,50,.06) 100%);
}

/* Laptop / tablet landscape: still show the full image. */
@media (max-width: 1199px) and (min-width: 768px) {
    .rs-banner.style4 {
        min-height: 570px !important;
    }

    .nycbc-hero-photo {
        object-fit: contain !important;
        object-position: right center !important;
    }

    .rs-banner.style4 .banner-content.pb-13,
    .rs-banner.style4 .banner-content {
        padding-top: 66px !important;
        padding-bottom: 30px !important;
    }
}

/* Phones: place the complete image above the copy; no crop at all. */
@media (max-width: 767px) {
    .rs-banner.style4 {
        min-height: 0 !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
    }

    .nycbc-hero-photo {
        position: relative !important;
        inset: auto !important;
        order: 0;
        display: block;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .rs-banner.style4 > .container {
        order: 1;
        width: 100%;
    }

    .rs-banner.style4 .banner-content.pb-13,
    .rs-banner.style4 .banner-content {
        padding-top: 34px !important;
        padding-bottom: 38px !important;
    }

    .rs-banner.style4 .banner-title {
        font-size: clamp(34px, 10vw, 44px) !important;
        line-height: 1.08 !important;
    }
}

.hero-title-main {
    visibility: visible;
    animation-duration: 3000ms;
    animation-delay: 300ms;
    animation-name: fadeInLeft;
    font-size: 1.15em;
    font-weight: 700;
    display: inline;
}

/* NYCBC v19: tighten certification course hero title */
.hero-title-main {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0 !important;
    line-height: 1 !important;
}
.hero-title-main > span:first-child {
    display: block;
    line-height: 0.94 !important;
    margin: 0 !important;
}
.hero-title-main > span:last-child {
    display: block;
    line-height: 1 !important;
    margin: 0.08em 0 0 !important;
}


/* v19.1: Login / portal breadcrumb banner - mobile fix */
@media (max-width: 767px) {
  .rs-breadcrumbs .breadcrumbs-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
  }

  .rs-breadcrumbs .breadcrumbs-img img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover;
    object-position: center center;
  }

  .rs-breadcrumbs .breadcrumbs-text {
    z-index: 2;
  }
}
