/* =========================================
   HERO HEADER
========================================= */

.main-header {
    background: url('../images/Hand-Symbol-Background.png') no-repeat center center;
    background-size: min(70vw, 700px);

    position: relative;
    width: 100%;
    min-height: clamp(350px, 60vh, 700px);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Hero image */
.main-header-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

/* Content */
.main-header-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 900px;

    text-align: center;
    padding: 20px;
}

/* Title */
.main-header-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;

    color: var(--primary-text-color);
    margin-bottom: 20px;
}

/* Description */
.main-header-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;

    max-width: 700px;
    margin: 0 auto;

    color: var(--primary-text-color);
}

.form_template {
    position: relative;

    width: min(100%, 780px);
    margin: 40px auto;
    padding: clamp(28px, 4vw, 48px);

    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);

    overflow: hidden;
}
/* Subtle background pattern */
.form_template::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at top right,
            rgba(255, 193, 7, 0.08),
            transparent 35%),
        radial-gradient(circle at bottom left,
            rgba(107, 70, 193, 0.08),
            transparent 35%);

    pointer-events: none;
    z-index: 0;
}

.form_template > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .form_template {
        width: calc(100% - 20px);
        margin: 20px auto;
        padding: 24px 20px;
        border-radius: 18px;
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 980px) {
    .main-header {
        min-height: 450px;
        background-size: 60vw;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .main-header {
        min-height: 320px;
        padding: 30px 15px;
        background-size: 80vw;
    }

    .main-header-content {
        padding: 10px;
    }

    .main-header-title {
        font-size: 2rem;
    }

    .main-header-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .main-header-image {
        max-width: 280px;
    }
}

/* =========================================
   SECTIONS
========================================= */

.et_pb_section {
    padding: clamp(40px, 6vw, 80px) 0;
}

/* HERO SECTION */
.et_pb_section_0 {
    position: relative;
    background-color: var(--background-color);
    overflow: hidden;
}

.et_pb_section_0::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;

    width: clamp(120px, 20vw, 300px);
    height: clamp(120px, 20vw, 300px);

    background: url('../images/Hand-Symbol-Background.png') no-repeat center;
    background-size: contain;

    transform: rotate(40deg);
    opacity: 0.2;
    pointer-events: none;
}

.et_pb_section_0 > * {
    position: relative;
    z-index: 1;
}

/* CONTENT SECTIONS */
.et_pb_section_1,
.et_pb_section_2 {
    position: relative;
    background-color: var(--soft-white);
    overflow: hidden;

    border-radius: clamp(16px, 2vw, 24px);

    max-width: 1400px;
    margin: 20px auto 40px;
    padding: 20px;
}

/* Decorative image */
.et_pb_section_2::before {
    content: "";
    position: absolute;

    top: 20px;
    right: 20px;

    width: clamp(120px, 18vw, 300px);
    height: clamp(120px, 18vw, 300px);

    background: url('../images/Orange-Hands-1.svg') no-repeat center;
    background-size: contain;

    transform: rotate(10deg);
    opacity: 0.1;

    z-index: 0;
    pointer-events: none;
}

.et_pb_section_2 > * {
    position: relative;
    z-index: 1;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 980px) {

    .et_pb_section_1,
    .et_pb_section_2 {
        margin: 15px;
        padding: 20px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .et_pb_section {
        padding: 30px 0;
    }

    .et_pb_section_1,
    .et_pb_section_2 {
        margin: 10px;
        padding: 15px;
        border-radius: 16px;
    }

    .et_pb_section_0::before,
    .et_pb_section_2::before {
        width: 120px;
        height: 120px;
        opacity: 0.08;
    }
}

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

.et_pb_section_3 {
    position: relative;
    overflow: hidden;

    background: var(--soft-white);

    max-width: 1400px;
    margin: 20px auto 40px;

    padding: clamp(40px, 6vw, 80px) 20px;
    border-radius: clamp(16px, 2vw, 24px);
}

.et_pb_section_3::before {
    content: "";
    position: absolute;

    top: 20px;
    left: 20px;

    width: clamp(120px, 18vw, 300px);
    height: clamp(120px, 18vw, 300px);

    background: url('../images/Hand-Symbol-Background.png') no-repeat center;
    background-size: contain;

    transform: rotate(40deg);
    opacity: 0.08;

    z-index: 0;
    pointer-events: none;
}

.et_pb_section_3 > * {
    position: relative;
    z-index: 1;
}

/* ===================================
   VIDEO / IMAGE WRAPPER
=================================== */

.video-wrapper,
.image-wrapper {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

    border-radius: 20px;
    overflow: hidden;

    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

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

.hero-video {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    object-fit: cover;
    background: #000;
}

/* =========================================
   ROWS
========================================= */

.et_pb_row {
    width: min(92%, 1280px);
    margin: 0 auto;
}

.et_block_row {
    display: block;
}

.et_flex_row {
    display: flex;
    align-items: stretch;
    gap: clamp(20px, 3vw, 40px);
}

.et_grid_row {
    display: grid;
    gap: clamp(20px, 3vw, 40px);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 980px) {

    .et_pb_section_3 {
        margin: 15px;
    }

    .et_flex_row {
        flex-direction: column;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .et_pb_section_3 {
        margin: 10px;
        padding: 30px 15px;
        border-radius: 16px;
    }

    .et_pb_section_3::before {
        width: 120px;
        height: 120px;
        opacity: 0.05;
    }

    .et_pb_row {
        width: 95%;
    }

    .et_flex_row {
        gap: 20px;
    }

    .et_grid_row {
        gap: 20px;
    }

    .video-wrapper,
    .image-wrapper {
        border-radius: 14px;
    }
}

/* =========================================
   HERO AREA
========================================= */

.et_pb_text_0,
.et_pb_text_1 {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.et_pb_text_1 p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.8;
}

/* =========================================
   OFFER SECTION
========================================= */

.offer_title {
    border-top: 6px solid var(--card-color, var(--secondary-yellow));

    padding-top: 15px;
    margin: 10px 0 20px;

    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;

    color: var(--header-color);
}

.offer_description {
    margin: 10px 0;

    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
}

.et_pb_link {
    color: var(--card-color, var(--secondary-yellow));
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.et_pb_link:hover {
    opacity: 0.8;
}

/* =========================================
   COMING SOON IMAGE
========================================= */

.card_coming_soon,
.card_comeing_soon {
    width: min(100%, 300px);
    height: auto;
    margin: 0 auto;
}

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

.et_pb_code_inner {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* =========================================
   TOGGLE
========================================= */

.et_pb_toggle {
    background: #fff;

    margin: 12px 0;

    border: none;
    border-radius: 20px;
    overflow: hidden;

    box-shadow: 0 6px 20px rgba(0,0,0,.05);
}

.et_pb_toggle_title {
    color: var(--primary-text-color) !important;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.et_pb_toggle_content {
    padding: clamp(16px, 3vw, 28px);
}

/* =========================================
   IMAGE + TEXT SECTION
========================================= */

.et_pb_row_3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
}

.et_pb_image img {
    width: 100%;
    height: auto;

    border-radius: 20px;
    display: block;
}

.et_pb_text_2 {
    padding: 20px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 980px) {

    .et_pb_row_3 {
        grid-template-columns: 1fr;
    }

    .et_pb_text_2 {
        padding: 10px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .offer_title {
        font-size: 1.8rem;
    }

    .offer_description {
        font-size: 1rem;
    }

    .et_pb_toggle {
        border-radius: 16px;
    }

    .et_pb_toggle_content {
        padding: 16px;
    }

    .card_coming_soon,
.card_comeing_soon {
        max-width: 220px;
    }

    .et_pb_text_2 {
        padding: 0;
    }
}
/* =========================================
   COURSE CARDS
========================================= */

.courses-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(50px, 6vw, 80px) 20px;
    border-radius: 24px;
    background: #fff;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(20px, 3vw, 30px);
}

.course-card {
    display: flex;
    flex-direction: column;

    background: #fff;
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 24px;

    padding: clamp(24px, 3vw, 35px);

    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    transition: all .25s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.course-badge {
    display: inline-block;
    align-self: flex-start;

    background: var(--card-color);
    color: #111;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;

    padding: 8px 14px;
    border-radius: 999px;

    margin-bottom: 16px;
}

.course-title {
    margin: 0 0 14px;

    color: var(--header-color);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1.25;
}

.course-description {
    margin: 0 0 24px;

    color: #666;
    line-height: 1.7;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-bottom: 24px;
}

.course-meta-item {
    flex: 1 1 180px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 18px;

    background: var(--soft-white);
    border-radius: 14px;
}

.course-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    font-size: 18px;
    line-height: 1;

    flex-shrink: 0;
}

.course-meta-item span:last-child {
    font-weight: 600;
    line-height: 1.3;
}

.course-link {
    margin-top: auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 24px;

    background: var(--card-color);
    color: #111;

    border-radius: 999px;

    font-weight: 700;
    text-decoration: none;

    transition: all .25s ease;
}

.course-link:hover {
    transform: translateY(-2px);
    opacity: .9;
}

.coming-soon {
    margin-top: auto;
    text-align: center;
}

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

.et_pb_row_6 {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(300px, 1fr)
    );

    gap: clamp(20px, 3vw, 30px);
}

.et_pb_row_6 .et_pb_column {
    background: #fff;

    border-radius: 20px;
    padding: clamp(20px, 3vw, 35px);

    box-shadow: 0 10px 25px rgba(0,0,0,.06);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.et_pb_row_6 .et_pb_column:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,0,0,.10);
}

/* Card labels */
.et_pb_text p {
    color: var(--card-color, var(--secondary-yellow));

    font-weight: 700;
    text-transform: uppercase;

    font-size: 13px;
    letter-spacing: 1px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 980px) {

    .et_pb_row_5,
    .et_pb_row_6 {
        grid-template-columns: repeat(
            auto-fit,
            minmax(260px, 1fr)
        );
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .et_pb_row_5,
    .et_pb_row_6 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .et_pb_row_5 .et_pb_column,
    .et_pb_row_6 .et_pb_column {
        padding: 20px;
        border-radius: 16px;
    }
}
/* =========================================
   CAREER LIST
========================================= */
.career_card__body {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
    gap: 28px;
    align-items: start;
}

/* Video wrapper */
.career_video {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Shared video styling */
.career_video video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: #000;
    object-fit: contain;
}

/* Landscape video */
.career_video--landscape video {
    aspect-ratio: 16 / 9;
    max-width: 100%;
}

/* Portrait video */
.career_video--portrait video {
    aspect-ratio: 9 / 16;
    width: min(100%, 360px);
    max-height: 620px;
}

/* Content */
.career_type {
    margin: 0;
}

.btn-video {
    display: none;
}

.career_list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 10px 15px;
}

/* Card */
.career_card {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 20px;
    padding: clamp(20px, 3vw, 32px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.career_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}
.career_meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.career_meta__label {
    font-size: .8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.career_meta__value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color, #0b5fff);
    text-decoration: none;
}

.career_meta__value:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .career_card__body {
        grid-template-columns: 1fr;
    }

    .career_video--portrait video {
        width: min(100%, 320px);
        max-height: 560px;
    }
}

@media (max-width: 480px) {
    .career_video--portrait video {
        width: min(100%, 280px);
        max-height: 500px;
    }
}
/* =========================================
   HEADER
========================================= */

.career_card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.career_title {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
}

.career_date {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff8e5;
    color: #b8860b;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================
   CONTENT
========================================= */

.career_description {
    margin: 0 0 24px;
    color: #444;
    line-height: 1.8;
}

/* =========================================
   SKILLS
========================================= */

.career_skills {
    margin: 0 0 24px;
    padding-left: 20px;
}

.career_skills li {
    margin-bottom: 10px;
    color: #444;
    line-height: 1.6;
}

/* =========================================
   ACTIONS
========================================= */

.career_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 24px;
}

.career_actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition:
        transform .25s ease,
        opacity .25s ease;
}

.career_actions a:hover {
    transform: translateY(-2px);
}

/* Buttons */
.btn-download {
    background: #f5f5f5;
    color: #111;
}
.btn-apply {
    background: var(--primary-color, #111);
    color: #fff;
    margin-left: auto;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 980px) {

    .career_card {
        padding: 24px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .career_card {
        padding: 20px;
        border-radius: 16px;
    }

    .career_card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .career_title {
        font-size: 1.4rem;
    }

    .career_actions {
        flex-direction: column;
    }

    .career_actions a,
    .btn-apply {
        width: 100%;
        margin-left: 0;
    }
}

/* =========================================
   BUTTONS
========================================= */

.et_pb_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    margin: 20px 0;

    border: 2px solid var(--button-color);
    border-radius: 10px;

    background-color: var(--button-color);

    transition: all .25s ease;
}

.et_pb_button a {
    color: var(--text-color);

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
}

.et_pb_button:hover {
    background-color: var(--button-hover);
    border-color: var(--button-hover);

    transform: translateY(-2px);
}

/* =========================================
   COMING SOON BADGE
========================================= */

.coming-soon {
    margin-top: 20px;
    text-align: center;
}

.coming-soon img {
    width: clamp(90px, 15vw, 120px);
    height: auto;

    margin: 0 auto;
    display: block;
}

/* =========================================
   LOGO
========================================= */

.logo-column img,
.et_pb_menu__logo img,
.site-header img {
    width: 100%;
    max-width: 150px;
    height: auto;

    display: block;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .et_pb_group {
        flex-direction: column;
        gap: 12px;
    }

    .et_pb_blurb {
        min-width: auto;
        width: 100%;
    }

    .et_pb_button {
        width: 100%;
        margin: 15px 0;
    }

    .logo-column img,
    .et_pb_menu__logo img,
    .site-header img {
        max-width: 110px;
    }
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    background: var(--header-color);
    color: #fff;
    padding: 60px 0 25px;
}

.footer-container {
    width: min(92%, 1280px);
    margin: 0 auto;
}

/* =========================================
   GRID
========================================= */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: .25s ease;
}

.footer-column a:hover {
    color: #fff;
    padding-left: 5px;
}

/* =========================================
   BRAND
========================================= */

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 150px;
    height: auto;
    display: block;
}

.footer-tagline {
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    margin: 0;
}

/* =========================================
   SOCIAL
========================================= */

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0 35px;
}

.footer-social .social-link {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(255,255,255,.08);

    color: #fff;
    text-decoration: none;

    transition: .3s ease;
}

.footer-social .social-link i {
    font-size: 20px;
}

.footer-social .social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================
   COPYRIGHT
========================================= */

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,.6);
    font-size: .95rem;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .site-footer {
        padding: 45px 0 20px;
    }

    .footer-grid {
        gap: 35px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }

    .footer-column ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-social {
        gap: 12px;
        flex-wrap: wrap;
    }
}
/* =========================================
   TOGGLE
========================================= */

.et_pb_toggle {
    background: var(--secondary-color);

    border-radius: 20px;

    padding: clamp(16px, 3vw, 24px);
    margin-top: 30px;

    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.et_pb_toggle_title {
    margin: 0;

    width: 100%;
    text-align: center;

    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
}

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

.fitvidsignore {
    width: 100%;
    max-width: 1000px;

    aspect-ratio: 16/9;

    margin: 0 auto 24px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.fitvidsignore video {
    width: 100%;
    height: 100%;

    border: 0;
    border-radius: 20px;
}

/* =========================================
   TOGGLE HEADER
========================================= */

.toggle-header {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 18px 20px;

    background: var(--primary-color);
    border-radius: 20px;

    cursor: pointer;
}

.toggle_title {
    font-size: clamp(1rem, 2vw, 1.2rem);

    font-weight: 700;
    color: var(--primary-text-color);

    text-align: center;
    width: 100%;
}

.toggle-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;

    border: 0;
    border-radius: 50%;

    background: var(--primary-color);
    color: var(--primary-text-color);

    font-size: 28px;
}

/* =========================================
   SECTION TITLE
========================================= */

.section_title {
    border-left: 6px solid var(--secondary-yellow);

    padding-left: 15px;
    margin: 10px 0;

    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;

    line-height: 1.2;

    color: var(--header-color);
}

/* =========================================
   OFFER CONTENT
========================================= */

.offer-content {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
}

.offer-text {
    flex: 1;
}

.offer-video {
    flex: 1;
    padding: 20px;
}

.offer-video video,
.offer-video img {
    width: 100%;
    border-radius: 12px;
}

.offer-video video {
    aspect-ratio: 16/9;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

/* =========================================
   TOGGLE CONTENT
========================================= */

.et_pb_toggle_content {
    display: none;

    width: 100%;
    max-width: 1000px;

    margin: 24px auto 0;
    padding: clamp(16px, 3vw, 24px);

    background: var(--soft-white);

    border-radius: 20px;
}

.et_pb_toggle_0.et_pb_toggle {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: clamp(12px, 2vw, 18px);
    margin: 20px auto 12px;
}

.et_pb_toggle_0.et_pb_toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../images/Orange-Hands-1.svg") center / cover no-repeat;
    opacity: 0.16;
    pointer-events: none;
}

.et_pb_toggle_0.et_pb_toggle .toggle-wrapper-image {
    display: none;
}

.et_pb_toggle_0.et_pb_toggle .fitvidsignore {
    max-width: 720px;
    margin-bottom: 12px;
}

.et_pb_toggle_0.et_pb_toggle .fitvidsignore video {
    object-fit: contain;
}

.et_pb_toggle_0.et_pb_toggle .toggle-header {
    max-width: 720px;
    padding: 8px 16px;
    align-items: center;
}

.et_pb_toggle_0.et_pb_toggle .et_pb_toggle_content {
    max-width: 720px;
    margin-top: 12px;
}

.et_pb_toggle_open .et_pb_toggle_content {
    display: block;
}

/* =========================================
   SERVICE LAYOUT
========================================= */

.tootle-servce {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);

    max-width: 1200px;
    margin: 0 auto;
}

.toggle-wrapper-image {
    flex: 0 0 min(320px, 100%);
}

.toggle-wrapper-image img {
    width: 100%;
    height: auto;
}

.et_pb_text_inner{
    color: var(--primary-text-color);
}

/* =========================================
   MAIN INFO
========================================= */

.main-info {
    position: relative;

    background: var(--soft-white);

    margin: 20px auto;
    padding: clamp(20px, 4vw, 40px);

    border-radius: 24px;

    max-width: 1400px;

    box-shadow: 0 12px 30px rgba(0,0,0,.08);

    overflow: hidden;
}

.main-info-content {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
}

.main-info::before {
    content: "";

    position: absolute;

    top: 20px;
    left: 20px;

    width: clamp(120px, 18vw, 300px);
    height: clamp(120px, 18vw, 300px);

    background: url('../images/Hand-Symbol-Background.png') center/contain no-repeat;

    opacity: .08;
    transform: rotate(40deg);
}

.main-info > * {
    position: relative;
    z-index: 1;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .offer-content,
    .tootle-servce,
    .main-info-content {
        flex-direction: column;
    }

    .toggle-header {
        padding: 16px;
    }

    .toggle-wrapper-image {
        flex: unset;
        width: 100%;
    }

    .main-info {
        margin: 10px;
        border-radius: 16px;
    }
}
/* =========================================
   COURSE LIST
========================================= */

.course-listing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 36px;

    max-width: 1300px;
    margin: 60px auto;
    padding: 0 24px;
}

/* =========================================
   COURSE CARD
========================================= */

.course-item {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 100%;

    padding: clamp(24px, 3vw, 36px);

    overflow: hidden;

    background: #fff;

    border: 1px solid #e4eaf0;
    border-radius: 26px;

    box-shadow:
        0 12px 30px rgba(19, 34, 54, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.course-item::before {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 9px;

    content: "";

    background: var(--card-color);
}

.course-item::after {
    position: absolute;
    top: -75px;
    right: -75px;

    width: 190px;
    height: 190px;

    content: "";

    background: var(--card-color);

    border-radius: 50%;

    opacity: 0.12;

    pointer-events: none;
}

.course-item:hover {
    transform: translateY(-7px);

    box-shadow:
        0 24px 50px rgba(19, 34, 54, 0.13);
}

/* =========================================
   HEADER
========================================= */

.course-card-header {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 24px;
}

.course-label {
    display: inline-flex;

    padding: 8px 14px;

    background: color-mix(
        in srgb,
        var(--card-color) 18%,
        white
    );

    border: 1px solid color-mix(
        in srgb,
        var(--card-color) 45%,
        white
    );

    border-radius: 999px;

    color: #14213d;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* =========================================
   TITLE AND DESCRIPTION
========================================= */

.course-title {
    position: relative;
    z-index: 1;

    margin: 0 0 18px;

    color: var(--secondary-color);

    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 750;
    line-height: 1.25;
}

.course-title::after {
    display: block;

    width: 70px;
    height: 5px;

    margin-top: 14px;

    content: "";

    background: var(--card-color);

    border-radius: 999px;
}

.course-description {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    color: #5f6875;
    font-size: 16px;
    line-height: 1.75;
}

/* =========================================
   COURSE META
========================================= */

.course-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.course-date,
.course-duration,
.course-deadline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.course-date {
    background: #edf7ff;
    color: #0869b2;
}

/* Plain course information, so it stays neutral. The red of .course-deadline
   signals a cut-off date and must not be borrowed for a course length. */
.course-duration {
    background: #f1f4f8;
    color: #3d4a5c;
}

.course-deadline {
    background: #fff1f1;
    color: #b52222;
}

/* =========================================
   PDF LINK
========================================= */

.course-pdf {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.course-pdf::before {
    content: "↓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: color-mix(
        in srgb,
        var(--card-color) 20%,
        white
    );

    border-radius: 50%;
}

.course-pdf:hover {
    text-decoration: underline;
}

/* =========================================
   SCHEDULE
========================================= */

.course-schedule {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 0;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 14px 15px 14px 18px;

    background: #f7f9fb;

    border: 1px solid #e8edf2;
    border-left: 5px solid var(--card-color);

    border-radius: 13px;
}

.schedule-text {
    flex: 1;
    min-width: 0;

    color: var(--header-color);

    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.schedule-enrol-btn {
    flex: 0 0 auto;

    padding: 9px 18px;

    background: var(--card-color);

    border: 2px solid transparent;
    border-radius: 999px;

    color: #14213d;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.schedule-enrol-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 18px color-mix(
            in srgb,
            var(--card-color) 35%,
            transparent
        );
}

/* =========================================
   CERTIFIED SESSION PRESENTATION / ANNOUNCED FALLBACK
   Duration pill, session-time labels and the enquiry fallback card.
   Added on top of the restored Segment 5 stylesheet; do not replace this
   file wholesale with an older complete copy.
========================================= */

.course-schedule-label {
    margin: 0;

    color: var(--header-color);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.schedule-item--info {
    justify-content: flex-start;
}

.course-schedule-note {
    margin: 0;

    color: #5f6875;

    font-size: 14px;
    line-height: 1.6;
}

.course-announced-note {
    position: relative;
    z-index: 1;

    margin: auto 0 14px;
    padding-top: 18px;

    color: #5f6875;

    font-size: 14px;
    line-height: 1.6;
}

.course-enquire-btn {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;

    padding: 11px 22px;

    background: var(--card-color);

    border: 2px solid transparent;
    border-radius: 999px;

    color: #14213d;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.course-enquire-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 18px color-mix(
            in srgb,
            var(--card-color) 35%,
            transparent
        );
}

.course-enquire-btn:focus-visible {
    outline: 3px solid var(--secondary-yellow, #e4d100);
    outline-offset: 3px;
}

/* =========================================
   BLUE CARD
========================================= */

.course-item-blue {
    background:
        linear-gradient(
            145deg,
            rgba(55, 162, 246, 0.07),
            #ffffff 45%
        );
}

/* =========================================
   YELLOW CARD
========================================= */

.course-item-yellow {
    background:
        linear-gradient(
            145deg,
            rgba(228, 209, 0, 0.08),
            #ffffff 45%
        );
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
    .course-listing {
        gap: 26px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {
    .course-listing {
        grid-template-columns: 1fr;

        gap: 24px;

        margin: 40px auto;
        padding: 0 16px;
    }

    .course-item {
        padding: 26px 20px;

        border-radius: 20px;
    }

    .course-card-header {
        margin-bottom: 20px;
    }

    .schedule-item {
        flex-direction: column;
        align-items: stretch;

        gap: 12px;
    }

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

    .schedule-enrol-btn {
        width: 100%;

        text-align: center;
    }

    .schedule-item--info .schedule-text {
        text-align: left;
    }

    .course-enquire-btn {
        width: 100%;

        text-align: center;
    }
}
/* =========================================
   FORM FIELDS
========================================= */

.career_application {
    margin-top: clamp(30px, 5vw, 50px);
}

.application_card {
    background: #fff;
    padding: clamp(20px, 4vw, 40px);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.application_title {
    margin: 0 0 30px;
    font-size: clamp(1.75rem, 4vw, 2rem);
    font-weight: 700;
}

.application_card p {
    margin-bottom: 8px;
    color: #333;
    font-weight: 900;
}

/* =========================================
   FORM LAYOUT
========================================= */

.application_form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

/* =========================================
   INPUTS
========================================= */

.application_form input[type="text"],
.application_form input[type="email"],
.application_form input[type="password"],
.application_form input[type="date"],
.application_form input[type="time"],
.application_form textarea,
.application_form select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    font-size: 16px;
    transition:
        border-color .25s ease,
        box-shadow .25s ease;
    box-sizing: border-box;
}

.application_form input:focus,
.application_form textarea:focus,
.application_form select:focus {
    outline: none;
    border-color: var(--primary-color, #111);
    box-shadow: 0 0 0 4px rgba(17,17,17,.08);
}

.application_form textarea {
    min-height: 160px;
    resize: vertical;
}

.application_form select {
    width: 100%;
    padding: 14px 45px 14px 18px;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    font-size: 16px;
    line-height: 1.4;

    background-color: #fff;

    /* Remove default browser styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;

    cursor: pointer;

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.application_form select:focus {
    outline: none;
    border-color: var(--primary-color, #111);
    box-shadow: 0 0 0 4px rgba(17,17,17,.08);
}

.form-group {
    margin-bottom: 20px;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,.15);
}

.error-message {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}

/* =========================================
   CHECKBOXES AND RADIOS
========================================= */
/* Custom checkbox */
.application_form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 22px;
    height: 22px;
    padding: 0;

    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #fff;

    cursor: pointer;
    position: relative;
    vertical-align: middle;

    transition: all .2s ease;
}

.application_form input[type="checkbox"]:checked {
    background: var(--primary-color, #111);
    border-color: var(--primary-color, #111);
}

.application_form input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;

    width: 6px;
    height: 12px;

    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.application_form input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(17,17,17,.08);
}

.application_form input[type="checkbox"] + label,
.application_form label.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* =========================================
   DATE & TIME INPUTS
========================================= */

.application_form input[type="date"],
.application_form input[type="time"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    color: inherit;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    transition:
        border-color .25s ease,
        box-shadow .25s ease;
    cursor: pointer;
}

.application_form input[type="date"]:focus,
.application_form input[type="time"]:focus {
    outline: none;
    border-color: var(--primary-color, #111);
    box-shadow: 0 0 0 4px rgba(17,17,17,.08);
}

/* Improve spacing for Chrome/Safari */
.application_form input[type="date"]::-webkit-datetime-edit,
.application_form input[type="time"]::-webkit-datetime-edit {
    padding: 0;
}

/* Calendar & clock icons */
.application_form input[type="date"]::-webkit-calendar-picker-indicator,
.application_form input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .65;
    transition: opacity .2s ease;
}

.application_form input[type="date"]::-webkit-calendar-picker-indicator:hover,
.application_form input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Remove unwanted inner padding/icons in some browsers */
.application_form input[type="date"]::-webkit-inner-spin-button,
.application_form input[type="time"]::-webkit-inner-spin-button {
    display: none;
}

/* Placeholder-style colour before a value is selected */
.application_form input[type="date"]:invalid,
.application_form input[type="time"]:invalid {
    color: #9ca3af;
}
/* =========================================
   UPLOAD AREA
========================================= */

.upload-area {
    position: relative;
    padding: clamp(25px, 4vw, 40px) 20px;
    text-align: center;
    border: 2px dashed #d1d5db;
    border-radius: 18px;
    background: #fafafa;
    transition: .25s ease;
}

.upload-area:hover {
    background: #fff;
    border-color: var(--primary-color, #111);
}

.upload-area strong {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.upload-area span {
    display: block;
    color: #666;
    font-size: 14px;
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    display: block;
    font-size: 48px;
    color: #6b7280;
    margin-bottom: 12px;
    transition: color .25s ease;
}

.upload-area:hover .upload-icon {
    color: var(--primary-color, #111);
}

.upload-area.selected {
    border-color: #22c55e;
    background: #f0fdf4;
}

.upload-area.selected .upload-icon {
    color: #22c55e;
}

.upload-area.selected .upload-title {
    color: #15803d;
    font-weight: 600;
}

/* =========================================
   SUBMIT BUTTON
========================================= */

.btn-submit{
    border: 0;
    border-radius: 14px;
    padding: 16px 24px;
    margin-top: 10px;
    background: var(--primary-color, #111);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform .25s ease,
        opacity .25s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 980px) {

    .application_card {
        padding: 24px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .application_card {
        padding: 20px;
        border-radius: 16px;
    }

    .application_title {
        font-size: 1.6rem;
    }

    .btn-submit {
        width: 100%;
    }

    .upload-area {
        padding: 24px 15px;
    }
}

.upload-area small{
    display:block;
    margin-top:8px;
    color:#666;
}

.success{
    color:green;
    margin-top:5px;
}

.error{
    color:red;
    margin-top:5px;
}

/* =========================================
   ENROL LIST
========================================= */

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

.enrol-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.85fr) minmax(360px, 2fr) auto;
    align-items: center;
    gap: 24px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e7e9ee;
    border-radius: 0;
    padding: 20px 24px;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.enrol-card:hover {
    background: #fafbfc;
}

.enrol-card:last-child {
    border-bottom: 0;
}

.enrol-header h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #1f2937;
}

.enrol-header .badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.enrol-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 7px;
}

.enrol-body p {
    margin: 0;
    min-width: 0;
    font-size: 0.875rem;
    color: #596273;
    overflow-wrap: anywhere;
}

.enrol-body span {
    font-weight: 600;
    color: #273142;
}

.enrol-footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    min-width: 160px;
}

.manager-enrolment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    padding: 24px;
}

.manager-enrolment-current {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e7e9ee;
}

.manager-enrolment-current div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.manager-enrolment-current span {
    color: #687386;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.manager-enrolment-current strong {
    color: #273142;
    overflow-wrap: anywhere;
}

.manager-enrolment-form .form-group {
    margin: 0;
}

.manager-enrolment-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #273142;
}

.manager-enrolment-form input,
.manager-enrolment-form select,
.manager-enrolment-form textarea {
    width: 100%;
}

.manager-enrolment-history {
    margin-top: 24px;
    min-width: 0;
}

.manager-enrolment-history__list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.manager-enrolment-history__entry {
    padding: 16px 0;
    border-top: 1px solid #e7e9ee;
    overflow-wrap: anywhere;
}

.manager-enrolment-history__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
}

.manager-enrolment-history__entry p {
    margin: 8px 0 0;
    white-space: pre-wrap;
}

.manager-enrolment-form__note,
.manager-enrolment-form__actions {
    grid-column: 1 / -1;
}

.manager-enrolment-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 1100px) {
    .enrol-card {
        grid-template-columns: minmax(170px, 0.8fr) minmax(280px, 1.5fr);
    }

    .enrol-footer {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .enrol-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .enrol-body {
        grid-template-columns: 1fr;
    }

    .enrol-footer {
        grid-column: auto;
        min-width: 0;
    }

    .manager-enrolment-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .manager-enrolment-current {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}

.editBtn {
    display: inline-block;
    padding: 8px 12px;
    background: var(--button-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.downloadBtn {
    display: inline-block;
    padding: 8px 12px;
    background: var(--background-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.downloadBtn:hover,
.editBtn:hover {
    background: var(--background-color);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-top: 6px;
}

/* Status colors */
.badge-grey {
    background: #6c757d;
}

.badge-blue {
    background: #007bff;
}

.badge-orange {
    background: #fd7e14;
}

.badge-green {
    background: #28a745;
}

.badge-dark {
    background: #343a40;
}

/* Header layout fix */
.enrol-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.badge-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.badge-date {
    background: #17a2b8;
    color: #fff;
}

/* =========================================
MEETING TEAM
========================================= */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.team-card {
  width: 380px;
}

.team-card {
  padding: 32px;
  text-align: center;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 24px;
}

.team-card h3 {
  margin: 0;
  font-size: 1.75rem;
}

.team-card p {
  margin-top: 8px;
  color: #666;
  font-size: 1.1rem;
}

/* =========================================
 POP UP MESSAGE
========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    width: min(100%, 420px);
    background: #fff;
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.modal-box h3 {
    margin-bottom: 10px;
}

.modal-box button {
    margin-top: 18px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color, #111);
    color: #fff;
    cursor: pointer;
}

/* Interpreter live-call queue */
.live-call-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.live-call-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: #3730a3;
    background: #eef2ff;
    font-size: .86rem;
    font-weight: 800;
    white-space: nowrap;
}

.live-call-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #166534;
    font-size: .86rem;
    font-weight: 800;
}

.live-call-status > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .13);
}

.live-call-status.is-offline {
    color: #9a3412;
}

.live-call-status.is-offline > span {
    background: #f97316;
    box-shadow: 0 0 0 5px rgba(249, 115, 22, .13);
}

.notification-toggle {
    min-width: 218px;
    justify-content: center;
}

.notification-toggle.is-on {
    color: #166534;
    background: #f0fdf4;
    border-color: #86efac;
}

.notification-toggle.is-on:hover {
    color: #14532d;
    background: #dcfce7;
    border-color: #4ade80;
}

.notification-toggle:disabled {
    cursor: not-allowed;
    opacity: .68;
}

.notification-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 24px;
    align-items: start;
}

.notification-permission-card,
.notification-help-card {
    padding: clamp(22px, 4vw, 32px);
}

.notification-setting-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color, #e8e8ef);
}

.notification-setting-row__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: 14px;
}

.notification-setting-row__content h3,
.notification-setting-row__content p {
    margin: 0;
}

.notification-setting-row__content h3 {
    margin-bottom: 5px;
    color: var(--heading-color, #29293f);
    font-size: 1rem;
}

.notification-setting-row__content p {
    color: var(--muted-text, #687083);
    line-height: 1.55;
}

.notification-switch {
    position: relative;
    width: 54px;
    height: 30px;
    padding: 3px;
    border: 0;
    border-radius: 999px;
    background: #c8cad3;
    cursor: pointer;
    transition: background .2s ease;
}

.notification-switch > span:first-child {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(20, 20, 50, .24);
    transition: transform .2s ease;
}

.notification-switch[aria-checked="true"] {
    background: #22c55e;
}

.notification-switch[aria-checked="true"] > span:first-child {
    transform: translateX(24px);
}

.notification-switch:focus-visible {
    outline: 3px solid #f4c94b;
    outline-offset: 3px;
}

.notification-switch:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.notification-settings-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 24px;
}

.notification-settings-actions p {
    margin: 0;
}

.notification-help-card {
    background: linear-gradient(145deg, #f8f7ff, #fff);
}

.notification-help-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: #4d4db8;
    background: #e9e9ff;
    border-radius: 15px;
}

.notification-help-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.notification-help-card > p,
.notification-help-card li {
    color: var(--muted-text, #687083);
    line-height: 1.6;
}

.notification-help-card ol {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding-left: 22px;
}

.notification-help-card__note {
    margin-bottom: 0;
    padding: 14px;
    background: #fff7d6;
    border-radius: 12px;
}

@media (max-width: 960px) {
    .notification-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .notification-setting-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .notification-setting-row__icon {
        width: 42px;
        height: 42px;
    }

    .notification-setting-row > button {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .notification-setting-row > .notification-switch {
        justify-self: start;
    }
}

.live-call-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    width: min(390px, calc(100vw - 32px));
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 19px;
    color: #fff;
    background: #25255f;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(20, 20, 55, .3);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .25s ease, transform .25s ease;
}

.live-call-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.live-call-toast > i {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #25255f;
    background: #f4c94b;
    border-radius: 12px;
}

.live-call-toast strong,
.live-call-toast span {
    display: block;
}


.live-call-toast span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .82);
    font-size: .9rem;
}

@media (max-width: 640px) {
    .live-call-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .live-call-toast {
        right: 16px;
        bottom: 16px;
    }
}
/* =========================================
   LOVESIGNHUB RESPONSIVENESS + ACCESSIBILITY
   Added to keep layouts consistent across pages.
========================================= */

/* Safer wrapping for long text, links, email addresses and course titles */
.et_pb_text,
.et_pb_text_inner,
.course-title,
.course-description,
.career_description,
.enrol-body,
.footer-column,
.application_card {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Consistent focus states for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.et_pb_button:focus-visible {
    outline: 3px solid var(--secondary-yellow, #e4d100);
    outline-offset: 3px;
}

/* More reliable button text colour when buttons contain direct text or links */
.et_pb_button,
.et_pb_button a,
.schedule-enrol-btn,
.btn-submit,
.btn-apply,
.enrol-btn {
    text-align: center;
}

/* Prevent decorative backgrounds from causing visual clutter on smaller screens */
@media (max-width: 980px) {
    .et_pb_section_0::before,
    .et_pb_section_2::before,
    .et_pb_section_3::before,
    .main-info::before {
        opacity: 0.06;
        transform: rotate(25deg);
    }
}

/* Stronger mobile behaviour for two-column/flex areas */
@media (max-width: 768px) {
    .main-header {
        min-height: auto;
        padding: 48px 15px;
        background-size: min(90vw, 360px);
    }

    .main-header-title,
    .section_title,
    .offer_title,
    .application_title {
        line-height: 1.15;
    }

    .et_pb_row,
    .footer-container,
    .header-inner,
    .menu-container {
        width: min(94%, 100%);
    }

    .course-meta,
    .career_actions,
    .course-actions,
    .badge-group {
        width: 100%;
    }

    .course-date,
    .course-duration,
    .course-deadline,
    .course-days,
    .badge {
        white-space: normal;
    }

    .fitvidsignore,
    .hero-video,
    .offer-video video {
        max-height: 65vh;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.55rem; }
    h3 { font-size: 1.25rem; }

    .et_pb_section_1,
    .et_pb_section_2,
    .et_pb_section_3,
    .main-info,
    .application_card,
    .course-item,
    .career_card,
    .enrol-card {
        margin-left: 8px;
        margin-right: 8px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .toggle-header {
        align-items: flex-start;
    }

    .toggle-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 24px;
    }
}
a {
    color: #8383ee;
}
/* =========================================
   MANAGER DASHBOARD
========================================= */

.manager-dashboard {
    width: min(94%, 1400px);
    margin: 0 auto;
    padding: clamp(30px, 5vw, 70px) 0;
}

.manager-dashboard *,
.manager-dashboard *::before,
.manager-dashboard *::after {
    box-sizing: border-box;
}

.manager-eyebrow {
    display: inline-block;
    color: var(--primary-color, #14213d);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

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

.manager-hero {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 30px;
    padding: clamp(28px, 5vw, 52px);

    background:
        linear-gradient(
            135deg,
            color-mix(
                in srgb,
                var(--secondary-yellow, #e4d100) 14%,
                white
            ),
            var(--soft-white, #f8f8f8) 62%
        );

    border: 1px solid rgba(0,0,0,.05);
    border-radius: 28px;

    box-shadow: 0 15px 40px rgba(19,34,54,.08);
}

.manager-hero::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -70px;

    width: 280px;
    height: 280px;

    background: var(--secondary-yellow, #e4d100);
    border-radius: 50%;

    opacity: .12;
    pointer-events: none;
}

.manager-hero__content,
.manager-hero__actions {
    position: relative;
    z-index: 1;
}

.manager-hero__content {
    max-width: 760px;
}

.manager-hero h1 {
    margin: 8px 0 14px;
    color: var(--header-color, #14213d);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
}

.manager-hero p {
    max-width: 720px;
    margin: 0;
    color: #5f6875;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.75;
}

.manager-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

/* =========================================
   BUTTONS
========================================= */

.manager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 13px 22px;

    border: 2px solid transparent;
    border-radius: 999px;

    font-size: .95rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.manager-btn:hover {
    transform: translateY(-2px);
}

.manager-btn--primary {
    background: var(--secondary-yellow, #e4d100);
    color: #14213d;
    box-shadow: 0 8px 20px rgba(228,209,0,.2);
}

.manager-btn--secondary {
    background: #fff;
    border-color: #dfe5eb;
    color: var(--header-color, #14213d);
}

.manager-btn--small {
    min-height: 42px;
    padding: 10px 17px;
    font-size: .88rem;
}

.manager-btn--full {
    width: 100%;
    margin-top: 20px;
}

/* =========================================
   STAT CARDS
========================================= */

.manager-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.manager-stat {
    --manager-stat-color: #37a2f6;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    gap: 16px;

    min-width: 0;
    padding: 23px;

    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 22px;

    color: inherit;
    text-decoration: none;

    box-shadow: 0 10px 28px rgba(19,34,54,.06);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.manager-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 7px;
    height: 100%;

    background: var(--manager-stat-color);
}

.manager-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 17px 34px rgba(19,34,54,.1);
}

.manager-stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    flex: 0 0 54px;

    background:
        color-mix(
            in srgb,
            var(--manager-stat-color) 14%,
            white
        );

    border-radius: 17px;
    font-size: 1.5rem;
}

.manager-stat__content {
    flex: 1;
    min-width: 0;
}

.manager-stat__content strong {
    display: block;
    color: var(--header-color, #14213d);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1;
}

.manager-stat__content span {
    display: block;
    margin-top: 7px;
    color: #697381;
    font-size: .9rem;
    font-weight: 650;
}

.manager-stat__arrow {
    color: var(--header-color, #14213d);
    font-size: 1.1rem;
    font-weight: 800;
}

.manager-stat--blue {
    --manager-stat-color: #37a2f6;
}

.manager-stat--yellow {
    --manager-stat-color: #e4d100;
}

.manager-stat--orange {
    --manager-stat-color: #f59e0b;
}

.manager-stat--red {
    --manager-stat-color: #dc2626;
}

/* =========================================
   MAIN LAYOUT
========================================= */

.manager-layout {
    display: grid;
    grid-template-columns: minmax(0,1.6fr) minmax(320px,.75fr);
    gap: 28px;
    align-items: start;
}

.manager-main-column,
.manager-side-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.manager-panel {
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);

    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 26px;

    box-shadow: 0 12px 32px rgba(19,34,54,.07);
}

.manager-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.manager-panel__header h2 {
    margin: 5px 0 0;
    color: var(--header-color, #14213d);
    font-size: clamp(1.4rem, 3vw, 1.95rem);
    line-height: 1.2;
}

.manager-text-link {
    flex: 0 0 auto;
    color: var(--primary-color, #14213d);
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}

.manager-text-link:hover {
    text-decoration: underline;
}

/* =========================================
   ONBOARDING
========================================= */

.manager-card-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#atw-notes {
    scroll-margin-top: 100px;
}

.manager-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.manager-pagination__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 110px;
    padding: 10px 16px;
    border: 1px solid var(--border-color, #dbe2ea);
    border-radius: 10px;
    background: var(--card-background, #ffffff);
    color: var(--primary-color, #2563eb);
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.manager-pagination__button:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color, #2563eb);
}

.manager-pagination__button.is-disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.manager-pagination__status {
    color: var(--muted-color, #64748b);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.manager-task__top > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 560px) {
    .manager-pagination {
        flex-wrap: wrap;
    }

    .manager-pagination__status {
        order: -1;
        width: 100%;
    }

    .manager-pagination__button {
        flex: 1;
    }
}

.onboarding-card {
    padding: 20px;
    background: #f8fafb;
    border: 1px solid #edf0f3;
    border-radius: 20px;
}

.onboarding-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.onboarding-card__header h3 {
    margin: 0 0 5px;
    color: var(--header-color, #14213d);
    font-size: 1.1rem;
}

.onboarding-card__header p {
    margin: 0;
    color: #6d7784;
}

.onboarding-card__meta {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
    margin: 20px 0;
}

.onboarding-card__meta span {
    min-width: 0;
    color: #5f6875;
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.onboarding-card__meta strong {
    display: block;
    margin-bottom: 4px;
    color: #313b48;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.onboarding-progress__label {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
    color: #4c5664;
    font-size: .86rem;
}

.onboarding-progress__track,
.atw-usage__track {
    overflow: hidden;
    width: 100%;
    height: 9px;
    background: #e5e9ed;
    border-radius: 999px;
}

.onboarding-progress__track span,
.atw-usage__track span {
    display: block;
    height: 100%;
    background: var(--secondary-yellow, #e4d100);
    border-radius: inherit;
}

.onboarding-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* =========================================
   STATUS
========================================= */

.manager-status,
.task-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 11px;
    border-radius: 999px;

    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-success {
    background: #e6f8ee;
    color: #167548;
}

.status-info {
    background: #e9f4ff;
    color: #176fae;
}

.status-warning {
    background: #fff4d9;
    color: #946200;
}

.status-danger {
    background: #fde8e8;
    color: #b42318;
}

/* =========================================
   TABLE
========================================= */

.manager-table-wrap {
    overflow-x: auto;
    border: 1px solid #edf0f3;
    border-radius: 18px;
}

.manager-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.manager-table th,
.manager-table td {
    padding: 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #edf0f3;
}

.manager-table th {
    background: #f8fafb;
    color: #5d6774;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.manager-table td {
    color: #46505d;
    font-size: .9rem;
}

.manager-table tbody tr:last-child td {
    border-bottom: 0;
}

.manager-table tbody tr:hover {
    background: #fffdf3;
}

.atw-usage {
    min-width: 180px;
}

.atw-usage__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    font-size: .8rem;
}

.atw-usage small {
    display: block;
    margin-top: 6px;
    color: #747d89;
}

.manager-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    background: #f8fafb;
    border: 1px solid #e3e8ed;
    border-radius: 50%;

    color: var(--header-color, #14213d);
    font-weight: 800;
    text-decoration: none;
}

.manager-icon-link:hover {
    background: var(--secondary-yellow, #e4d100);
}

.manager-muted {
    color: #8b949f;
}

/* =========================================
   TASKS
========================================= */

.manager-task-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.manager-task {
    padding: 17px;
    background: #f8fafb;
    border: 1px solid #edf0f3;
    border-radius: 17px;
}

.manager-task__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.manager-task h3 {
    margin: 0 0 6px;
    color: var(--header-color, #14213d);
    font-size: .98rem;
}

.manager-task p {
    margin: 0;
    color: #6c7682;
    font-size: .88rem;
}

.manager-task__due {
    color: #7b8490;
    font-size: .8rem;
    font-weight: 650;
}

.task-priority--high {
    background: #fde8e8;
    color: #b42318;
}

.task-priority--normal {
    background: #e9f4ff;
    color: #176fae;
}

/* =========================================
   QUICK LINKS
========================================= */

.manager-quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.manager-quick-links a {
    display: grid;
    grid-template-columns: 45px minmax(0,1fr) auto;
    align-items: center;
    gap: 13px;

    padding: 14px;

    background: #f8fafb;
    border: 1px solid #edf0f3;
    border-radius: 16px;

    color: inherit;
    text-decoration: none;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.manager-quick-links a:hover {
    transform: translateX(3px);
    background: #fffdf0;
    border-color: var(--secondary-yellow, #e4d100);
}

.manager-quick-links a > span:first-child {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    background: #fff;
    border-radius: 13px;
    font-size: 1.2rem;
}

.manager-quick-links strong,
.manager-quick-links small {
    display: block;
}

.manager-quick-links strong {
    margin-bottom: 3px;
    color: var(--header-color, #14213d);
    font-size: .94rem;
}

.manager-quick-links small {
    color: #747d88;
    line-height: 1.4;
}

/* =========================================
   ACCESSIBILITY
========================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.manager-dashboard a:focus-visible,
.manager-dashboard button:focus-visible {
    outline: 3px solid var(--secondary-yellow, #e4d100);
    outline-offset: 3px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {
    .manager-stat-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .manager-layout {
        grid-template-columns: 1fr;
    }

    .manager-side-column {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 768px) {
    .manager-dashboard {
        width: min(94%,100%);
        padding: 24px 0 45px;
    }

    .manager-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 22px;
        border-radius: 22px;
    }

    .manager-hero__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .manager-hero__actions .manager-btn {
        flex: 1 1 180px;
    }

    .manager-panel {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .manager-side-column {
        display: flex;
    }

    .onboarding-card__meta {
        grid-template-columns: 1fr;
    }

    .manager-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .manager-table {
        min-width: 0;
    }

    .manager-table thead {
        display: none;
    }

    .manager-table,
    .manager-table tbody,
    .manager-table tr,
    .manager-table td {
        display: block;
        width: 100%;
    }

    .manager-table tr {
        margin-bottom: 16px;
        padding: 16px;

        background: #f8fafb;
        border: 1px solid #edf0f3;
        border-radius: 17px;
    }

    .manager-table tr:last-child {
        margin-bottom: 0;
    }

    .manager-table td {
        display: grid;
        grid-template-columns: 120px minmax(0,1fr);
        gap: 12px;

        padding: 10px 0;
        border-bottom: 1px solid #edf0f3;
    }

    .manager-table td::before {
        content: attr(data-label);
        color: #5d6774;
        font-size: .74rem;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .manager-table td:last-child {
        border-bottom: 0;
    }

    .manager-icon-link {
        width: 100%;
        border-radius: 12px;
    }

    .atw-usage {
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .manager-stat-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .manager-stat {
        padding: 19px;
        border-radius: 18px;
    }

    .manager-hero__actions {
        flex-direction: column;
    }

    .manager-hero__actions .manager-btn,
    .onboarding-card__actions .manager-btn {
        width: 100%;
        flex: unset;
    }

    .onboarding-card__header,
    .manager-panel__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .manager-table td {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
/* =========================================================
   VRS CLIENT DASHBOARD
   Uses the shared colour system from navBar.css
   ========================================================= */

:root {
    /* Dashboard aliases mapped to navBar.css variables */
    --background: var(--soft-white);
    --surface: #ffffff;
    --surface-muted: color-mix(in srgb, var(--soft-white) 82%, var(--primary-color));
    --text: var(--text-color);
    --text-soft: color-mix(in srgb, var(--text-color) 68%, white);
    --text-light: color-mix(in srgb, var(--text-color) 52%, white);

    --border: color-mix(in srgb, var(--header-color) 14%, transparent);
    --border-dark: color-mix(in srgb, var(--header-color) 26%, transparent);

    --primary: var(--primary-color);
    --primary-dark: var(--header-color);
    --primary-light: color-mix(in srgb, var(--primary-color) 16%, white);

    --success: #147a4f;
    --success-light: #e9f8f0;
    --danger: #b6372d;
    --danger-light: #fff0ee;
    --warning: #9a6200;
    --warning-light: #fff7df;

    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 24px;

    --shadow-small: 0 4px 18px rgba(33, 33, 62, 0.08);
    --shadow-medium: 0 14px 34px rgba(33, 33, 62, 0.12);

    --header-height: 74px;
    --sidebar-width: 250px;
    --transition: 180ms ease;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 12px 18px;
    border-radius: var(--radius-small);
    background: var(--text);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

/* =========================================================
   HEADER
   ========================================================= */

.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-height);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.dashboard-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    padding: 0 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.brand__text {
    display: flex;
    flex-direction: column;
}

.brand__text strong {
    font-size: 1rem;
}

.brand__text small {
    margin-top: 1px;
    color: var(--text-soft);
    font-size: 0.78rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.header-profile__avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 800;
}

.header-profile__details {
    display: flex;
    flex-direction: column;
}

.header-profile__details strong {
    max-width: 150px;
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-profile__details small {
    color: var(--text-soft);
    font-size: 0.75rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--header {
    border-color: var(--border-dark);
    background: var(--surface);
    color: var(--text);
}

.btn--header:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn--primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(91, 63, 214, 0.2);
}

.btn--primary:hover {
    background: var(--primary-dark);
}

.btn--large {
    width: 100%;
    min-height: 58px;
    padding: 15px 24px;
    border-radius: 14px;
    font-size: 1rem;
}

.btn--danger-outline {
    border-color: #f1b8b3;
    background: var(--surface);
    color: var(--danger);
}

.btn--danger-outline:hover {
    border-color: var(--danger);
    background: var(--danger-light);
}

.btn--disabled {
    background: #e6e7ec;
    color: #777b85;
    cursor: not-allowed;
    box-shadow: none;
}

.btn--disabled:hover {
    transform: none;
}

/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.dashboard-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: calc(100vh - var(--header-height));
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 18px;
    border-right: 1px solid var(--border);
    background: var(--surface);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sidebar-nav__link {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 11px;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
    transition:
        background-color var(--transition),
        color var(--transition);
}

.sidebar-nav__link:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.sidebar-nav__link--active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.sidebar-nav__icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    place-items: center;
    font-size: 1.15rem;
}

.sidebar-help {
    padding: 18px;
    border: 1px solid #d9d1ff;
    border-radius: var(--radius-medium);
    background: var(--primary-light);
}

.sidebar-help strong {
    display: block;
    margin-bottom: 7px;
    color: var(--primary-dark);
}

.sidebar-help p {
    margin-bottom: 12px;
    color: #504776;
    font-size: 0.82rem;
}

.sidebar-help a {
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 800;
}

.dashboard-main {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 38px;
}

/* =========================================================
   WELCOME SECTION
   ========================================================= */

.welcome-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.eyebrow {
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.welcome-section h1 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    letter-spacing: -0.04em;
}

.welcome-section__description {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 1rem;
}

.service-status {
    display: flex;
    min-width: 170px;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 14px;
}

.service-status--open {
    border-color: #b7e5cf;
    background: var(--success-light);
    color: var(--success);
}

.service-status--closed {
    border-color: #f2beb8;
    background: var(--danger-light);
    color: var(--danger);
}

.service-status__dot {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(20, 122, 79, 0.12);
}

.service-status div {
    display: flex;
    flex-direction: column;
}

.service-status small {
    opacity: 0.8;
    font-size: 0.72rem;
}

.service-status strong {
    font-size: 0.9rem;
}

/* =========================================================
   REQUEST CARD
   ========================================================= */

.request-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.65fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 26px;
    padding: 34px;
    overflow: hidden;
    border-radius: var(--radius-large);
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255, 255, 255, 0.18),
            transparent 28%
        ),
        linear-gradient(135deg, #5134cb 0%, #7257e9 100%);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(65, 39, 177, 0.2);
}

.request-card::after {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border: 28px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.request-card__content,
.request-card__action {
    position: relative;
    z-index: 1;
}

.request-card__label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.request-card h2 {
    max-width: 620px;
    margin-bottom: 12px;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    letter-spacing: -0.035em;
}

.request-card__content > p {
    max-width: 650px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.84);
}

.request-card__information {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 20px;
}

.request-card__information div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
    font-weight: 650;
}

.request-card__information span {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.7rem;
}

.request-card__action {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.request-card__action .btn--primary {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 12px 28px rgba(34, 17, 103, 0.2);
}

.request-card__action .btn--primary:hover {
    background: #f5f2ff;
}

.request-form {
    margin: 0;
}

.request-card__note {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    text-align: center;
}

/* =========================================================
   DASHBOARD CARDS
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-card {
    margin-bottom: 24px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.dashboard-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-card__header--border {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.dashboard-card__header h2 {
    margin-bottom: 0;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.dashboard-card__icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 13px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 900;
}

.empty-state {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px;
    text-align: center;
}

.empty-state__icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 50%;
    background: var(--success-light);
    color: var(--success);
    font-size: 1.35rem;
    font-weight: 900;
}

.empty-state h3 {
    margin-bottom: 7px;
    font-size: 1rem;
}

.empty-state p {
    max-width: 350px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.empty-state--small {
    min-height: 150px;
}

.current-request {
    padding-top: 4px;
}

.current-request__status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 13px;
    background: var(--warning-light);
    color: var(--warning);
}

.current-request__status div {
    display: flex;
    flex-direction: column;
}

.current-request__status small {
    font-size: 0.72rem;
}

.loading-pulse {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(161, 92, 0, 0.35);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(161, 92, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(161, 92, 0, 0);
    }
}

.request-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px 0;
}

.request-details div {
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-muted);
}

.request-details dt {
    margin-bottom: 3px;
    color: var(--text-soft);
    font-size: 0.72rem;
}

.request-details dd {
    margin: 0;
    font-weight: 800;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.card-actions form {
    margin: 0;
}

.information-list {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.information-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.information-list div:first-child {
    padding-top: 0;
}

.information-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.information-list dt {
    color: var(--text-soft);
}

.information-list dd {
    margin: 0;
    font-weight: 750;
    text-align: right;
}

/* =========================================================
   RECENT CALLS
   ========================================================= */

.recent-calls-card {
    margin-bottom: 24px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.calls-table {
    width: 100%;
    border-collapse: collapse;
}

.calls-table th,
.calls-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.calls-table th {
    color: var(--text-soft);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.calls-table td {
    font-size: 0.9rem;
}

.calls-table tbody tr:last-child td {
    border-bottom: 0;
}

.calls-table tbody tr:hover {
    background: var(--surface-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.status-badge--completed {
    background: var(--success-light);
    color: var(--success);
}

.status-badge--waiting {
    background: var(--warning-light);
    color: var(--warning);
}

.status-badge--cancelled {
    background: var(--danger-light);
    color: var(--danger);
}

/* =========================================================
   QUICK LINKS
   ========================================================= */

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

.quick-link-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 130px;
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-small);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.quick-link-card:hover {
    border-color: #c9bfff;
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.quick-link-card__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.quick-link-card h2 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.quick-link-card p {
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 0.8rem;
}

.quick-link-card__arrow {
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 800;
}

/* =========================================================
   FOOTER
   ========================================================= */

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 38px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.78rem;
}

.dashboard-footer p {
    margin: 0;
}

.dashboard-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.dashboard-footer a {
    color: var(--text-soft);
    text-decoration: none;
}

.dashboard-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
    :root {
        --sidebar-width: 215px;
    }

    .dashboard-main {
        padding: 30px 24px;
    }

    .request-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .quick-link-card {
        min-height: auto;
    }
}

/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 820px) {
    .dashboard-header__inner {
        padding: 0 18px;
    }

    .header-profile__details {
        display: none;
    }

    .dashboard-layout {
        display: block;
    }

    .sidebar {
        position: sticky;
        top: var(--header-height);
        z-index: 90;
        display: block;
        width: 100%;
        padding: 10px 14px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-nav {
        display: flex;
        min-width: max-content;
        flex-direction: row;
        gap: 6px;
    }

    .sidebar-nav__link {
        min-height: 42px;
        padding: 9px 12px;
        white-space: nowrap;
    }

    .sidebar-nav__icon {
        width: 19px;
        height: 19px;
        font-size: 0.95rem;
    }

    .sidebar-help {
        display: none;
    }

    .dashboard-main {
        padding: 26px 18px;
    }

    .welcome-section {
        flex-direction: column;
        gap: 18px;
    }

    .service-status {
        width: 100%;
    }

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

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {
    .dashboard-header__inner {
        min-height: 68px;
    }

    .brand__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .brand__text small {
        display: none;
    }

    .header-actions {
        gap: 9px;
    }

    .header-profile {
        display: none;
    }

    .btn--header {
        min-height: 40px;
        padding: 8px 13px;
        font-size: 0.82rem;
    }

    .dashboard-main {
        padding: 22px 13px;
    }

    .welcome-section h1 {
        font-size: 1.8rem;
    }

    .request-card {
        padding: 24px 19px;
        border-radius: 19px;
    }

    .request-card__information {
        flex-direction: column;
    }

    .request-card__action {
        padding: 14px;
    }

    .dashboard-card {
        padding: 19px;
    }

    .dashboard-card__header {
        gap: 12px;
    }

    .dashboard-card__icon {
        width: 39px;
        height: 39px;
    }

    .information-list div {
        flex-direction: column;
        gap: 4px;
    }

    .information-list dd {
        text-align: left;
    }

    .card-actions {
        flex-direction: column;
    }

    .card-actions .btn,
    .card-actions form,
    .card-actions form .btn {
        width: 100%;
    }

    .calls-table,
    .calls-table tbody,
    .calls-table tr,
    .calls-table td {
        display: block;
        width: 100%;
    }

    .calls-table thead {
        display: none;
    }

    .calls-table tr {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .calls-table tr:last-child {
        border-bottom: 0;
    }

    .calls-table td {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        padding: 7px 0;
        border: 0;
        text-align: right;
    }

    .calls-table td::before {
        color: var(--text-soft);
        content: attr(data-label);
        font-size: 0.76rem;
        font-weight: 800;
        text-align: left;
    }

    .quick-link-card {
        grid-template-columns: auto 1fr;
    }

    .quick-link-card__arrow {
        display: none;
    }

    .dashboard-footer {
        flex-direction: column;
        padding: 22px 18px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Client contact directory */
.client-contacts-page .dashboard-main {
    min-width: 0;
}

.contacts-layout {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(420px, 1.28fr);
    gap: 24px;
    align-items: start;
}

.contacts-guidance {
    position: sticky;
    top: 24px;
    padding: clamp(24px, 4vw, 34px);
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(244, 201, 75, .24), transparent 190px),
        linear-gradient(145deg, #33337e, #5d5dca);
    color: #fff;
}

.contacts-guidance__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    color: #292965;
    background: #f4c94b;
    border-radius: 17px;
    font-size: 1.25rem;
}

.contacts-guidance .eyebrow,
.contacts-guidance h2 {
    color: #fff;
}

.contacts-guidance h2 {
    margin: 5px 0 14px;
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.15;
}

.contacts-guidance > p:not(.eyebrow) {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.65;
}

.contacts-guidance ul {
    display: grid;
    gap: 13px;
    margin: 28px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    list-style: none;
}

.contacts-guidance li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, .9);
    font-size: .92rem;
}

.contacts-guidance li i {
    margin-top: 3px;
    color: #f4c94b;
}

.form_template.contacts-form-card {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 22px;
    overflow: hidden;
}

.contacts-form-card::after {
    display: none;
}

.contacts-form-card .career_application {
    margin: 0;
}

.contacts-form-card .application_card {
    padding: clamp(24px, 4vw, 38px);
    border-radius: 0;
    box-shadow: none;
}

.contacts-form-card .application_title {
    margin-bottom: 28px;
    color: var(--primary-dark);
    font-size: clamp(1.45rem, 3vw, 1.8rem);
}

.contacts-form-card .application_form {
    gap: 21px;
}

.contacts-form-card .form-group {
    margin: 0;
}

.contacts-form-card .form-group label {
    color: #29293f;
    font-size: .92rem;
    font-weight: 750;
}

.contacts-form-card .application_form input {
    min-height: 54px;
    padding: 14px 16px;
    background: #fbfbfd;
    border: 1.5px solid #dedeea;
    border-radius: 13px;
    font-size: 1rem;
}

.contacts-form-card .application_form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(131, 131, 238, .14);
}

.contacts-form-card .btn-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 5px;
    background: var(--primary-color);
    font-weight: 800;
}

.contacts-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 15px 22px;
    color: #68687d;
    background: #f7f7fb;
    border-top: 1px solid #ececf3;
    font-size: .84rem;
    text-align: center;
}

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

    .contacts-guidance {
        position: static;
    }
}

@media (max-width: 560px) {
    .contacts-layout {
        gap: 16px;
    }

    .contacts-guidance,
    .contacts-form-card .application_card {
        padding: 22px;
    }

    .contacts-privacy-note {
        align-items: flex-start;
        text-align: left;
    }
}

.request-card__action--form {
    padding: 24px;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Tabs */

.request-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.request-tabs__button {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 750;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.request-tabs__button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.request-tabs__button--active {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(29, 14, 90, 0.18);
}

.request-tabs__icon {
    font-size: 1rem;
}

/* Tab panels */

.request-tab-panel {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.request-tab-panel--active {
    display: flex;
}

/* Form fields */

.request-form__group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.request-form__group label {
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
}

.optional-label {
    margin-left: 5px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 600;
}

.request-form input,
.request-form select,
.request-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 11px;
    background: #ffffff;
    color: var(--text);
    font-size: 0.9rem;
}

.request-form textarea {
    min-height: 105px;
    resize: vertical;
}

.request-form input::placeholder,
.request-form textarea::placeholder {
    color: #858895;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
    border-color: #ffffff;
    outline: 3px solid rgba(255, 255, 255, 0.25);
    outline-offset: 2px;
}

.request-form__help {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    line-height: 1.45;
}

.request-form__help a {
    color: #ffffff;
    font-weight: 800;
}

.request-form__footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.character-count {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
}

@media (max-width: 560px) {
    .request-card__action--form {
        padding: 16px;
    }

    .request-tabs {
        grid-template-columns: 1fr;
    }

    .request-tabs__button {
        justify-content: flex-start;
        padding-left: 15px;
    }

    .request-form__footer {
        flex-direction: column;
        gap: 5px;
    }

    .character-count {
        align-self: flex-end;
    }
}
/*
 * Normal phone-number layout:
 * introduction on the left and form on the right.
 */
.request-card {
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(360px, 0.8fr);
}

/*
 * Contact mode:
 * the action area takes the entire width of the request card.
 */
.request-card--contacts-open {
    display: block;
    padding: 28px;
}

/*
 * Hide the introduction while viewing contacts.
 */
.request-card--contacts-open .request-card__content {
    display: none;
}

/*
 * Remove the narrow right-column appearance.
 */
.request-card--contacts-open .request-card__action {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}

/*
 * Keep the tabs visible across the top.
 */
.request-card--contacts-open .request-tabs {
    width: 100%;
    max-width: 620px;
    margin: 0 auto 22px;
}

/*
 * Let the contact panel use all available space.
 */
.request-card--contacts-open #contact-panel {
    width: 100%;
}

/*
 * Full-width contact widget.
 */
.request-card--contacts-open .contact-widget {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
}

/*
 * More contacts per row on desktop.
 */
.request-card--contacts-open .contact-list {
    grid-template-columns: repeat(
        3,
        minmax(220px, 1fr)
    );
    max-height: 520px;
    padding: 18px;
}

/*
 * Place notes and the call button below the contacts.
 */
.request-card--contacts-open .request-form__group,
.request-card--contacts-open .selected-contact,
.request-card--contacts-open #contact-call-button {
    width: 100%;
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

.request-card--contacts-open .selected-contact {
    margin-top: 18px;
}

.request-card--contacts-open .request-form__group {
    margin-top: 18px;
}

.request-card--contacts-open #contact-call-button {
    margin-top: 4px;
}

/*
 * Hide the normal note beneath the form while the
 * full contact picker is open.
 */
.request-card--contacts-open .request-card__note {
    display: none;
}

@media (max-width: 1050px) {
    .request-card--contacts-open .contact-list {
        grid-template-columns: repeat(
            2,
            minmax(220px, 1fr)
        );
    }
}

@media (max-width: 650px) {
    .request-card--contacts-open {
        padding: 19px;
    }

    .request-card--contacts-open .request-tabs {
        max-width: none;
    }

    .request-card--contacts-open .contact-list {
        grid-template-columns: 1fr;
        max-height: 480px;
    }
}
/* =========================================================
   VRS REQUEST CARD — CONSOLIDATED FIXES
   Keep this block at the end so it overrides older rules.
   ========================================================= */

#vrs-request-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
    align-items: stretch;
}

#vrs-request-card .request-card__content {
    align-self: center;
}

#vrs-request-card .request-card__action {
    min-width: 0;
}

#vrs-request-card .request-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#vrs-request-card .request-tab-panel[hidden] {
    display: none !important;
}

#vrs-request-card .request-tab-panel--active {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Full-card contact mode */
#vrs-request-card.request-card--contacts-open {
    display: block;
    padding: 30px;
}

#vrs-request-card.request-card--contacts-open .request-card__content {
    display: none;
}

#vrs-request-card.request-card--contacts-open .request-card__action {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}

#vrs-request-card.request-card--contacts-open .request-tabs {
    width: min(100%, 680px);
    margin: 0 auto 22px;
}

#vrs-request-card.request-card--contacts-open #contact-panel {
    width: 100%;
}

#vrs-request-card.request-card--contacts-open .request-card__note {
    display: none;
}

/* Contact widget */
.contact-widget {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
}

.contact-widget__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-widget__header h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 1.05rem;
}

.contact-widget__header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.8rem;
}

.contact-widget__add {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 10px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.contact-widget__add:hover {
    background: rgba(255, 255, 255, 0.12);
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    gap: 12px;
    max-height: 500px;
    padding: 18px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.contact-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-item:hover {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.contact-item:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.45);
    outline-offset: 3px;
}

.contact-item--selected {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.contact-item__avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 900;
}

.contact-item__details {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.contact-item__details strong,
.contact-item__details small,
.contact-item__details > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-item__details strong {
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.contact-item__details small {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.7rem;
}

.contact-item__details > span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.77rem;
}

.contact-item__selected {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    color: transparent;
    font-size: 0.72rem;
    font-weight: 900;
}

.contact-item--selected .contact-item__selected {
    border-color: #fff;
    background: #fff;
    color: var(--primary-dark);
}

.selected-contact {
    display: flex;
    width: min(100%, 920px);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 2px auto 0;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.selected-contact[hidden] {
    display: none !important;
}

.selected-contact__details {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.selected-contact__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: var(--primary-dark);
}

.selected-contact__details div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.selected-contact__details small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.68rem;
}

.selected-contact__details strong,
.selected-contact__details div > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-contact__details strong {
    color: #fff;
    font-size: 0.9rem;
}

.selected-contact__details div > span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.76rem;
}

.selected-contact__change {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: underline;
}

.contact-notes-group,
#contact-call-button {
    width: min(100%, 920px);
    margin-right: auto;
    margin-left: auto;
}

.contact-widget__empty {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
}

.contact-widget__empty > span {
    margin-bottom: 10px;
    font-size: 2rem;
}

.contact-widget__empty h3 {
    margin: 0 0 7px;
    color: #fff;
}

.contact-widget__empty p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.74);
}

#contact-call-button:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.62);
    cursor: not-allowed;
    box-shadow: none;
}

#contact-call-button:disabled:hover {
    transform: none;
}

@media (max-width: 1100px) {
    #vrs-request-card {
        grid-template-columns: 1fr;
    }

    .contact-list {
        grid-template-columns: repeat(2, minmax(210px, 1fr));
    }
}

@media (max-width: 700px) {
    #vrs-request-card.request-card--contacts-open {
        padding: 20px;
    }

    .contact-widget__header {
        flex-direction: column;
    }

    .contact-widget__add {
        width: 100%;
        text-align: center;
    }

    .contact-list {
        grid-template-columns: 1fr;
        max-height: 470px;
        padding: 14px;
    }
}

@media (max-width: 560px) {
    #vrs-request-card .request-tabs {
        grid-template-columns: 1fr 1fr;
    }

    #vrs-request-card .request-tabs__button {
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.76rem;
    }

    .selected-contact {
        align-items: flex-start;
    }
}



/* =========================================================
   VRS DASHBOARD — SHARED NAVBAR THEME OVERRIDES
   ========================================================= */

.dashboard-header {
    background: color-mix(in srgb, var(--soft-white) 94%, transparent);
    border-bottom-color: var(--border);
}

.dashboard-layout,
.dashboard-main {
    background: var(--soft-white);
}

.sidebar,
.dashboard-card,
.recent-calls-card,
.quick-link-card,
.request-card__action {
    border-color: var(--border);
}

.request-card {
    background:
        radial-gradient(
            circle at 85% 20%,
            color-mix(in srgb, var(--primary-text-color) 20%, transparent),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--header-color) 0%,
            var(--primary-color) 100%
        );
    box-shadow: 0 18px 38px color-mix(
        in srgb,
        var(--header-color) 24%,
        transparent
    );
}

.request-card__action .btn--primary,
.request-tabs__button--active,
.contact-item__avatar,
.selected-contact__icon {
    background: var(--button-color);
    color: var(--text-color);
}

.request-card__action .btn--primary:hover {
    background: var(--button-hover);
}

.request-tabs__button--active {
    box-shadow: 0 6px 16px color-mix(
        in srgb,
        var(--header-color) 22%,
        transparent
    );
}

.contact-item--selected .contact-item__selected {
    border-color: var(--button-color);
    background: var(--button-color);
    color: var(--text-color);
}

.sidebar-nav__link--active {
    background: var(--primary-light);
    color: var(--header-color);
}

.sidebar-nav__link:hover,
.quick-link-card:hover {
    background: var(--surface-muted);
}

.brand__icon {
    background: var(--primary-color);
    color: var(--primary-text-color);
}

.header-profile__avatar {
    background: var(--primary-light);
    color: var(--header-color);
}

.eyebrow,
.text-link,
.dashboard-footer a:hover {
    color: var(--primary-color);
}

.btn--header:hover {
    border-color: var(--primary-color);
    color: var(--header-color);
}

.btn--primary {
    background: var(--button-color);
    color: var(--text-color);
    box-shadow: 0 8px 18px color-mix(
        in srgb,
        var(--button-color) 28%,
        transparent
    );
}

.btn--primary:hover {
    background: var(--button-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-color: var(--button-color);
}
/* =========================================
   BREADCRUMB
========================================= */

.breadcrumb-nav {
    width: min(92%, var(--container-width));
    margin: 24px auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0;
    padding: 14px 20px;

    list-style: none;

    background: var(--soft-white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;

    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: .95rem;
    font-weight: 500;
}

.breadcrumb__item:not(:last-child)::after {
    content: "›";
    margin-left: 10px;
    color: #b8b8b8;
    font-size: 1rem;
}

.breadcrumb__item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color .2s ease;
}

.breadcrumb__item a:hover {
    color: var(--header-color);
    text-decoration: underline;
}

.breadcrumb__item--active {
    color: var(--header-color);
    font-weight: 700;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .breadcrumb-nav {
        width: calc(100% - 20px);
        margin: 15px auto;
    }

    .breadcrumb {
        padding: 12px 16px;
        gap: 8px;
    }

    .breadcrumb__item {
        font-size: .9rem;
    }
}
/* =========================================
   ATW UPLOAD / NOTES
========================================= */

.atw-section {
    position: relative;

    margin-top: 24px;
    padding: 28px;

    background: linear-gradient(
        135deg,
        rgba(37,99,235,.04),
        rgba(255,255,255,1)
    );

    border: 1px solid #dbeafe;
    border-left: 6px solid #2563eb;
    border-radius: 20px;

    box-shadow: 0 10px 25px rgba(37,99,235,.08);
}

.atw-section--notes {
    background: linear-gradient(
        135deg,
        rgba(228,209,0,.08),
        rgba(255,255,255,1)
    );

    border-color: #fef3c7;
    border-left-color: var(--secondary-yellow);
    box-shadow: 0 10px 25px rgba(228,209,0,.10);
}

.atw-section h3{
    display:flex;
    align-items:center;
    gap:12px;

    margin:0 0 8px;

    color:var(--header-color);
    font-size:1.35rem;
}

.atw-section p{
    margin:0 0 24px;
    color:#6b7280;
}

.atw-section .form-group{
    margin-bottom:22px;
}

.atw-section textarea{
    min-height:140px;
}

.atw-section .upload-area{
    margin-top:10px;
}

.atw-section .card-actions{
    margin-top:25px;
    padding-top:20px;

    border-top:1px solid rgba(0,0,0,.08);
}

@media (max-width:768px){

    .atw-section{
        padding:20px;
        border-radius:16px;
    }

}

.atw-compact {
    margin-bottom: 24px;
}

.atw-compact__body {
    padding: 24px 28px;
}


/* Horizontal progress */

.atw-progress-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
}

.atw-progress-item {
    position: relative;
    text-align: center;
}

.atw-progress-item:not(:last-child)::after {
    content: "";
    position: absolute;
    height: 3px;
    top: 17px;
    left: 50%;
    right: -50%;
    background: #e2e8f0;
    z-index: 0;
}

.atw-progress-item--complete:not(:last-child)::after {
    background: #22c55e;
}

.atw-progress-item__top {
    position: relative;
    z-index: 1;
}

.atw-progress-item__circle {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.atw-progress-item--complete .atw-progress-item__circle {
    background: #dcfce7;
    color: #15803d;
}

.atw-progress-item--current .atw-progress-item__circle {
    background: #2563eb;
    color: white;
    box-shadow: 0 0 0 4px #dbeafe;
}

.atw-progress-item__label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.atw-progress-item--current .atw-progress-item__label {
    color: #1d4ed8;
}


/* Current ATW status */

.atw-compact__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    padding: 12px 16px;
    margin-bottom: 20px;

    background: #eff6ff;
    border-radius: 10px;
}

.atw-compact__info span {
    color: #64748b;
    font-size: 13px;
}

.atw-compact__info strong {
    color: #1d4ed8;
}


/* Updates */

.atw-updates-compact {
    border-top: 1px solid #e5e7eb;
    padding-top: 18px;
}

.atw-updates-compact__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.atw-updates-compact__header h3 {
    margin: 0;
    font-size: 16px;
}

.atw-update-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;

    padding: 10px 0;
}

.atw-update-row + .atw-update-row {
    border-top: 1px solid #f1f5f9;
}

.atw-update-row__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f5f9;
    color: #475569;
}

.atw-update-row__content strong {
    font-size: 14px;
}

.atw-update-row__content p {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 13px;
}

.atw-update-row time {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

.status-badge--progress {
    background: #dbeafe;
    color: #1d4ed8;
}


/* Mobile */

@media (max-width: 650px) {

    .atw-compact__body {
        padding: 20px;
    }

    .atw-progress-item__label {
        font-size: 11px;
    }

    .atw-progress-item__circle {
        width: 32px;
        height: 32px;
    }

    .atw-progress-item:not(:last-child)::after {
        top: 15px;
    }

    .atw-compact__info {
        align-items: flex-start;
        flex-direction: column;
    }

    .atw-update-row {
        grid-template-columns: 34px 1fr;
    }

    .atw-update-row time {
        grid-column: 2;
    }
}
.atw-view-all {
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
}


/* =========================
   ATW NOTES MODAL
========================= */

.atw-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.atw-modal--open {
    display: flex;
}

.atw-modal__overlay {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.atw-modal__dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 650px;
    max-height: 80vh;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border-radius: 18px;

    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.25);
}

.atw-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 22px 24px;

    border-bottom: 1px solid #e5e7eb;
}

.atw-modal__header h2 {
    margin: 3px 0 0;
}

.atw-modal__close {
    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f5f9;
    color: #475569;

    cursor: pointer;

    font-size: 18px;

    transition: 0.2s ease;
}

.atw-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.atw-modal__body {
    padding: 20px 24px 24px;

    overflow-y: auto;
}


/* Notes */

.atw-modal-notes {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.atw-modal-note {
    padding: 16px 18px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.atw-modal-note__author {
    display: flex;
    align-items: center;
    gap: 11px;
}

.atw-modal-note__avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #dbeafe;
    color: #2563eb;
}

.atw-modal-note__author strong {
    display: block;
    font-size: 14px;
}

.atw-modal-note__author time {
    display: block;

    margin-top: 2px;

    font-size: 12px;
    color: #94a3b8;
}

.atw-modal-note p {
    margin: 12px 0 0;

    color: #475569;
    line-height: 1.6;
    font-size: 14px;
}


/* Prevent page scrolling */

body.atw-modal-open {
    overflow: hidden;
}


@media (max-width: 650px) {

    .atw-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .atw-modal__dialog {
        max-height: 88vh;

        border-radius: 18px 18px 10px 10px;
    }

    .atw-modal__header {
        padding: 18px;
    }

    .atw-modal__body {
        padding: 16px 18px 20px;
    }
}

/* Super-admin accounts: use the dashboard's typography and controls. */
.account-manager .dashboard-card > h2 {
    margin: 0 0 20px;
    font-size: 1.25rem;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.account-manager .account-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin: 20px 0;
}

.account-manager .account-form label {
    display: flex;
    flex: 1 1 220px;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
}

.account-manager .account-form input:not([type="hidden"]),
.account-manager .account-form select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid var(--border-dark, #cbd5e1);
    border-radius: 8px;
    background: var(--surface, #fff);
    color: var(--text);
    font: inherit;
    font-weight: 400;
    line-height: 1.4;
}

.account-manager .account-form input::placeholder {
    color: var(--text-soft, #64748b);
    opacity: 1;
}

.account-manager .account-search {
    display: block;
    max-width: 760px;
    margin: 24px 0;
}

.account-manager .account-search > label {
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.account-search__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border: 1px solid var(--border-dark, #cbd5e1);
    border-radius: 14px;
    background: var(--surface, #fff);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.account-search__bar:focus-within {
    border-color: var(--primary, #5b3fd6);
    box-shadow: 0 0 0 3px var(--primary-light, #f1efff);
}

.account-search__icon {
    flex: 0 0 auto;
    padding-left: 12px;
    color: var(--text-soft, #64748b);
}

.account-manager .account-search input[type="search"] {
    flex: 1 1 0;
    width: 0;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 1rem;
}

.account-manager .account-search input[type="search"]:focus-visible {
    outline: none;
}

.account-manager .account-search__bar .btn {
    flex: 0 0 auto;
    width: auto;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: none;
}

.account-search__clear {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-dark, #4338ca);
    font-size: 0.875rem;
    text-underline-offset: 3px;
}

.account-manager .btn {
    min-height: 46px;
    margin: 0;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 650;
}

.account-manager .btn--secondary {
    border-color: var(--border-dark, #cbd5e1);
    background: var(--surface, #fff);
    color: var(--primary-dark, #4338ca);
}

.account-manager .btn--secondary:hover {
    border-color: var(--primary);
    background: var(--primary-light, #f1efff);
}

/* Keep wide account rows readable without squeezing the dashboard on mobile. */
.account-table-wrap {
    overflow-x: auto;
    margin: 18px 0;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
}

.account-manager .account-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.account-manager .account-table th {
    padding: 14px 20px;
    background: var(--primary-light, #f5f3ff);
    color: var(--text-soft, #64748b);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.account-manager .account-table td {
    padding: 20px;
    border-top: 1px solid var(--border, #e2e8f0);
    vertical-align: middle;
}

.account-manager .account-table tbody tr:hover {
    background: #fafbfe;
}

.account-identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    max-width: 360px;
    overflow-wrap: anywhere;
}

.account-identity strong { color: var(--text); font-weight: 650; }
.account-identity span { color: var(--text-soft, #64748b); font-size: 0.875rem; }
.account-identity small { color: var(--text-soft, #64748b); font-size: 0.8125rem; }
.account-role { display: inline-block; max-width: 190px; font-weight: 550; }

.account-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 650;
    white-space: nowrap;
}

.account-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.account-status--active { background: #eaf7ef; color: #21633b; }
.account-status--locked { background: #fff1ed; color: #a33724; }
.account-protected { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft, #64748b); font-size: 0.8125rem; }
.account-manager .account-actions { width: 210px; min-width: 180px; }
.account-manager .account-actions .btn { min-height: 40px; padding: 9px 14px; font-size: 0.8125rem; }
.account-manager .account-actions button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.account-manager .account-actions form { margin: 0; }
.account-manager .account-table .account-delete summary { margin: 10px 0 0; color: #a33724; font-size: 0.8125rem; font-weight: 550; }
.account-manager .account-delete[open] { padding: 10px; margin-top: 10px; border: 1px solid #f0d0c9; border-radius: 8px; background: #fff8f6; }
.account-manager .account-delete label { display: block; margin: 12px 0; font-size: 0.8125rem; }
.account-manager .account-delete .btn { color: #a33724; border-color: #d99c90; }
.account-manager .account-table .account-empty { padding: 40px 20px; text-align: center; color: var(--text-soft, #64748b); }

.account-manager summary {
    cursor: pointer;
    font-weight: 600;
    line-height: 1.5;
}

.account-manager .account-table summary {
    margin: 12px 0;
}

.account-manager .account-form input:focus-visible,
.account-manager .account-form select:focus-visible,
.account-manager .btn:focus-visible {
    outline: 3px solid var(--primary, #5b3fd6);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .account-manager .account-form {
        flex-direction: column;
        align-items: stretch;
    }

    .account-manager .account-form label,
    .account-manager .account-search label {
        flex: 0 0 auto;
    }

    .account-manager .account-form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .account-manager .account-search__bar {
        flex-wrap: wrap;
        gap: 6px;
    }

    .account-manager .account-search__bar .btn {
        flex-basis: 100%;
        width: 100%;
    }

    .account-manager .account-search input[type="search"] {
        font-size: 0.9375rem;
    }
}

/* Login and account registration */
.login-page {
    --login-ink: #20203a;
    --login-muted: #68687d;
    --login-purple: #6464d9;
    --login-purple-dark: #4848af;
    --login-yellow: #f4c94b;
    min-height: calc(100vh - 112px);
    padding: clamp(24px, 5vw, 72px) 20px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 8% 12%, rgba(244, 201, 75, .22), transparent 24rem),
        radial-gradient(circle at 92% 88%, rgba(131, 131, 238, .19), transparent 28rem),
        #f7f7fb;
}

.login-shell {
    width: min(1120px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(32, 32, 58, .08);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(40, 40, 75, .14);
}

.login-visual {
    position: relative;
    isolation: isolate;
    padding: clamp(32px, 5vw, 58px);
    display: flex;
    flex-direction: column;
    color: #fff;
    background: linear-gradient(145deg, #7070e5 0%, #4d4db8 62%, #353583 100%);
    overflow: hidden;
}

.login-visual::before,
.login-visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.login-visual::before {
    width: 380px;
    height: 380px;
    right: -175px;
    top: -145px;
    border: 65px solid rgba(244, 201, 75, .25);
}

.login-visual::after {
    width: 330px;
    height: 330px;
    left: -180px;
    bottom: -190px;
    background: rgba(255, 255, 255, .08);
}

.login-visual__brand {
    width: 118px;
    display: inline-flex;
    padding: 10px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(25, 25, 70, .2);
}

.login-visual__brand img {
    display: block;
    width: 100%;
    height: auto;
}

.login-visual__content {
    margin: auto 0 42px;
}

.login-visual__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.login-visual h2 {
    max-width: 480px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.login-visual__content > p {
    max-width: 440px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 1.05rem;
    line-height: 1.7;
}

.login-benefits {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.login-benefits li {
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
}

.login-benefits i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #292965;
    background: var(--login-yellow);
    border-radius: 13px;
}

.login-benefits strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
}

.login-panel {
    min-width: 0;
    padding: clamp(38px, 6vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-panel__heading {
    margin-bottom: 28px;
}

.login-eyebrow {
    margin: 0 0 10px !important;
    color: var(--login-purple) !important;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.login-panel__heading h1 {
    margin: 0 0 12px;
    color: var(--login-ink);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.login-panel__heading > p:last-child {
    max-width: 520px;
    margin: 0;
    color: var(--login-muted);
    line-height: 1.65;
}

.form_template.login-form {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.form_template.login-form::after,
.login-form .application_title {
    display: none;
}

.login-form .application_card {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.login-form .career_application {
    margin-top: 0;
}

.login-form .application_form {
    gap: 20px;
}

.login-form .form-group label {
    margin-bottom: 8px;
    color: var(--login-ink);
    font-size: .92rem;
    font-weight: 750;
}

.login-form .application_form input[type="text"],
.login-form .application_form input[type="email"],
.login-form .application_form input[type="password"] {
    min-height: 54px;
    padding: 14px 16px;
    color: var(--login-ink);
    background: #fbfbfd;
    border: 1.5px solid #dddded;
    border-radius: 13px;
}

.login-form .application_form input:hover {
    border-color: #b8b8d2;
}

.login-form .application_form input:focus {
    border-color: var(--login-purple);
    box-shadow: 0 0 0 4px rgba(100, 100, 217, .13);
}

.login-form .link-item {
    margin-top: -8px;
    text-align: right;
}

.login-form .link-item br {
    display: none;
}

.login-form .link-item a,
.login-support a {
    color: var(--login-purple-dark);
    font-weight: 750;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.login-form .btn-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 2px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: var(--login-purple);
    box-shadow: 0 12px 28px rgba(78, 78, 180, .22);
    font-size: 1rem;
    font-weight: 800;
}

.login-form .btn-submit:hover {
    background: var(--login-purple-dark);
    transform: translateY(-1px);
}

.login-form .btn-submit:focus-visible,
.login-password__toggle:focus-visible,
.login-page a:focus-visible {
    outline: 3px solid var(--login-yellow);
    outline-offset: 3px;
}

.login-password {
    position: relative;
}

.login-password input {
    padding-right: 52px !important;
}

.login-password__toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    color: var(--login-muted);
    background: transparent;
    cursor: pointer;
}

.login-password__toggle:hover {
    color: var(--login-purple-dark);
    background: #eeeeFA;
}

.login-support {
    margin: 27px 0 0;
    color: var(--login-muted);
    font-size: .9rem;
    text-align: center;
}

@media (max-width: 860px) {
    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-visual {
        min-height: 300px;
        padding: 30px;
    }

    .login-visual__brand {
        width: 92px;
    }

    .login-visual__content {
        margin: 45px 0 0;
    }

    .login-benefits {
        display: none;
    }
}

@media (max-width: 560px) {
    .login-page {
        padding: 12px;
        place-items: start center;
    }

    .login-shell {
        border-radius: 22px;
    }

    .login-visual {
        min-height: 230px;
        padding: 24px;
    }

    .login-visual__content {
        margin-top: 30px;
    }

    .login-visual h2 {
        font-size: 1.85rem;
    }

    .login-visual__content > p,
    .login-visual__badge {
        display: none;
    }

    .login-panel {
        padding: 34px 24px 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-form .btn-submit {
        transition: none;
    }

    .login-form .btn-submit:hover {
        transform: none;
    }
}

/* Marketing, course, navigation enhancement and public form styles. */

/* Shared constrained hero composition — matches main content panel width */
.main-header__inner {
    width: min(94%, 1400px);
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    box-sizing: border-box;
}

/* Homepage: artwork left / text right within the constrained row */
.main-header--home {
    min-height: clamp(320px, 52vh, 620px);
}

.main-header--home .main-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    grid-template-areas: "image content";
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
}

.main-header--home .main-header-image {
    grid-area: image;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0;
    justify-self: start;
}

.main-header--home .main-header-content {
    grid-area: content;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
    justify-self: stretch;
}

.main-header--home .main-header-title {
    margin: 0 0 16px;
}

.main-header--home .main-header-description {
    margin: 0;
    max-width: 36rem;
}

/* Shared primary CTA (homepage View BSL Courses + Terps Explore) */
.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 24px;

    border-radius: 10px;
    border: 2px solid transparent;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: normal;

    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.hero-action--primary {
    background-color: var(--button-color);
    border-color: var(--button-color);
    color: var(--text-color);
}

.hero-action--primary:hover {
    background-color: var(--button-hover);
    border-color: var(--button-hover);
    transform: translateY(-2px);
}

.hero-action:focus-visible {
    outline: 3px solid var(--secondary-yellow, #e4d100);
    outline-offset: 3px;
}

/* Homepage hero CTAs only */
.main-header--home .main-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;

    width: 100%;
    max-width: 700px;
    margin: 28px 0 0;
}

.main-header--home .hero-action--secondary {
    background-color: transparent;
    border-color: var(--primary-text-color);
    color: var(--primary-text-color);
}

.main-header--home .hero-action--secondary:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: var(--primary-text-color);
    color: var(--primary-text-color);
    transform: translateY(-2px);
}

@media (max-width: 980px) {

    .main-header--home .main-header__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "content";
        gap: 20px;
        justify-items: center;
        text-align: center;
    }

    .main-header--home .main-header-image {
        max-width: min(420px, 100%);
        justify-self: center;
        margin: 0;
    }

    .main-header--home .main-header-content {
        text-align: center;
        max-width: 40rem;
    }

    .main-header--home .main-header-description {
        margin-left: auto;
        margin-right: auto;
    }

    .main-header--home .main-header-actions {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {

    .main-header--home .main-header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 24px;
    }

    .main-header--home .hero-action {
        width: 100%;
        min-height: 48px;
    }
}

@media (max-width: 768px) {

    .main-header--home .main-header-image {
        max-width: min(280px, 100%);
    }
}

/* Homepage intro copy under “Deaf-led. Visual. Human.” only */
.home-intro-lede {
    width: 100%;
    max-width: min(42rem, 100%);
    margin: 0.5rem auto 0;
    padding: 0 clamp(12px, 3vw, 24px);
    text-align: center;
}

.home-intro-lede p {
    margin: 0.75rem auto 1.75rem;
    max-width: 100%;
    text-align: center;
    line-height: 1.7;
}

/* =========================================
   BSL COURSES PAGE HERO
========================================= */

.bsl-courses-hero {
    background-color: var(--background-color);
    color: var(--primary-text-color);
    padding: clamp(28px, 5vw, 56px) 20px;
}

.bsl-courses-hero__inner {
    width: min(94%, 1200px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas:
        "content media"
        "transcript transcript";
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.bsl-courses-hero__content {
    grid-area: content;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.bsl-courses-hero__copy {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.bsl-courses-hero__copy h1 {
    margin: 0 0 18px;
    color: var(--primary-text-color);
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.15;
}

.bsl-courses-hero__accent {
    color: var(--header-color);
}

.bsl-courses-hero__copy p {
    margin: 0;
    max-width: 34rem;
    color: var(--primary-text-color);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
}

.bsl-courses-hero__lower {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.bsl-courses-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.bsl-courses-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 24px;

    border-radius: 10px;
    border: 2px solid transparent;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: normal;

    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.bsl-courses-hero__btn--primary {
    background-color: var(--button-color);
    border-color: var(--button-color);
    color: var(--text-color);
}

.bsl-courses-hero__btn--primary:hover {
    background-color: var(--button-hover);
    border-color: var(--button-hover);
    transform: translateY(-2px);
}

.bsl-courses-hero__btn--secondary {
    background-color: transparent;
    border-color: var(--primary-text-color);
    color: var(--primary-text-color);
}

.bsl-courses-hero__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.bsl-courses-hero__btn:focus-visible {
    outline: 3px solid var(--secondary-yellow, #e4d100);
    outline-offset: 3px;
}

.bsl-courses-hero__accreditation {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.bsl-courses-hero__signature {
    display: block;
    width: min(100%, 300px);
    height: auto;
    max-height: 110px;
    object-fit: contain;
    object-position: left bottom;
    flex: 0 1 auto;
}

/* Decorative watermark — out of flow so it never wraps or grows the column */
.bsl-courses-hero__hands {
    position: absolute;
    right: clamp(-36px, -4vw, 0px);
    bottom: 0;
    z-index: 0;

    display: block;
    width: min(252px, 55%);
    max-width: 252px;
    height: auto;

    object-fit: contain;
    opacity: 0.45;
    pointer-events: none;
}

.bsl-courses-hero__media {
    grid-area: media;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    align-self: start;
    min-width: 0;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.bsl-courses-hero__media-inner {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.bsl-courses-hero__video-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
}

.bsl-courses-hero__video {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 18px;
    object-fit: cover;
    background: #1a1a2e;
    vertical-align: top;
}

/* Translate control: white, matches video width, no dark outer box */
.bsl-courses-hero__translate {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: var(--header-color);
}

.bsl-courses-hero__translate .toggle-header {
    width: 100%;
    max-width: none;
    margin: 0;

    background: #ffffff;
    color: var(--header-color);
    border: 2px solid var(--header-color);
    border-radius: 12px;

    padding: 12px 16px;
    cursor: pointer;
}

/* Override generic .et_pb_toggle_title { color: var(--primary-text-color) !important; } */
.bsl-courses-hero__translate .et_pb_toggle_title,
.bsl-courses-hero__translate .toggle-header .et_pb_toggle_title {
    margin: 0;
    width: auto;
    flex: 1;
    text-align: left;
    color: var(--header-color) !important;
    font-size: 1rem;
    font-weight: 700;
}

.bsl-courses-hero__translate .toggle-btn {
    background: transparent;
    color: var(--header-color);
    border: 0;
}

.bsl-courses-hero__translate .toggle-icon,
.bsl-courses-hero__translate .toggle-btn .toggle-icon {
    color: var(--header-color);
    font-weight: 700;
}

.bsl-courses-hero__translate .toggle-header:hover {
    background: #f7f7fb;
}

.bsl-courses-hero__translate .toggle-header:hover .et_pb_toggle_title,
.bsl-courses-hero__translate .toggle-header:hover .toggle-icon {
    color: var(--header-color) !important;
}

.bsl-courses-hero__translate .toggle-btn:focus-visible,
.bsl-courses-hero__translate .toggle-header:focus-within {
    outline: 3px solid var(--secondary-yellow, #e4d100);
    outline-offset: 3px;
}

/* Full-width transcript spanning both hero columns */
.bsl-courses-hero__transcript {
    grid-area: transcript;
    grid-column: 1 / -1;

    display: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(16px, 3vw, 24px);

    background: #ffffff;
    color: var(--header-color);
    border-radius: 16px;
}

.bsl-courses-hero__transcript p {
    margin: 0;
    color: var(--header-color);
    font-size: 1rem;
    line-height: 1.7;
}

#why-learn-bsl,
#course-options {
    scroll-margin-top: 96px;
}

/* Full-bleed dark navy around the white Courses We Offer panel */
.bsl-course-options {
    width: 100%;
    margin: 0;
    padding: clamp(40px, 6vw, 72px) 20px;
    background: var(--header-color);
    box-sizing: border-box;
}

.bsl-course-options__panel.courses-section {
    margin: 0 auto;
    /* Was clamp(50px, 6vw, 80px) all sides — tighten top ~half, bottom ~1/4–2/5 */
    padding: clamp(22px, 2.8vw, 36px) clamp(16px, 2.5vw, 28px) clamp(14px, 1.8vw, 28px);
    overflow: visible;
}

.bsl-course-options__panel .section_title {
    margin-top: 0;
}

.bsl-course-options__panel .course-grid {
    margin-bottom: 0;
}

/* Compact BSL certification section — matches courses-section container */
.bsl-certification {
    position: relative;
    overflow: hidden;

    max-width: 1400px;
    width: 100%;
    margin: 20px auto 40px;
    padding: clamp(28px, 4vw, 40px) 20px;

    background: #fff;
    border-radius: 24px;
    box-sizing: border-box;
}

.bsl-certification::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;

    width: clamp(72px, 10vw, 140px);
    height: clamp(72px, 10vw, 140px);

    background: url('../images/Orange-Hands-1.svg') no-repeat center;
    background-size: contain;

    transform: rotate(10deg);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.bsl-certification > * {
    position: relative;
    z-index: 1;
}

.bsl-certification .section_title {
    margin: 0 0 14px;
}

.bsl-certification__content {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(120px, 0.55fr);
    gap: clamp(16px, 3vw, 28px);
    align-items: start;
}

.bsl-certification__text p {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
}

.bsl-certification__logo {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.bsl-certification__logo a {
    display: inline-block;
    line-height: 0;
}

.bsl-certification__logo img {
    display: block;
    width: min(180px, 100%);
    height: auto;
    max-width: 180px;
    object-fit: contain;
}

@media (max-width: 980px) {

    .bsl-courses-hero__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "media"
            "transcript";
        gap: 28px;
    }

    .bsl-courses-hero__content {
        text-align: center;
    }

    .bsl-courses-hero__copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .bsl-courses-hero__lower {
        align-items: center;
    }

    .bsl-courses-hero__actions {
        justify-content: center;
    }

    .bsl-courses-hero__accreditation {
        justify-content: center;
    }

    .bsl-courses-hero__signature {
        object-position: center bottom;
    }

    .bsl-courses-hero__hands {
        right: 50%;
        bottom: -8px;
        transform: translateX(50%);
        width: min(200px, 42%);
        max-width: 200px;
        opacity: 0.35;
    }

    .bsl-courses-hero__media {
        justify-content: center;
    }

    .bsl-courses-hero__media-inner {
        max-width: 100%;
        justify-content: flex-start;
    }

    .bsl-certification__content {
        grid-template-columns: 1fr;
    }

    .bsl-certification__logo {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {

    .bsl-courses-hero__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .bsl-courses-hero__btn {
        width: 100%;
    }

    .bsl-courses-hero__accreditation {
        flex-direction: column;
        align-items: center;
    }

    .bsl-courses-hero__signature {
        width: min(240px, 80%);
        max-height: 90px;
    }

    .bsl-courses-hero__hands {
        display: none;
    }

    .bsl-certification {
        margin: 16px auto 28px;
        padding: 24px 16px;
    }

    .bsl-certification::before {
        width: 80px;
        height: 80px;
        opacity: 0.06;
    }

    .bsl-certification__logo img {
        width: min(150px, 55%);
        max-width: 150px;
    }

    #why-learn-bsl,
    #course-options {
        scroll-margin-top: 72px;
    }
}

/* =========================================
   COURSE CATEGORY PAGE
========================================= */

.course-category-page {
    width: 100%;
    background: var(--soft-white);
    padding-bottom: clamp(40px, 6vw, 72px);
}

.course-category-intro {
    background: #fff;
    padding: clamp(28px, 5vw, 56px) 20px;
}

.course-category-intro__inner {
    width: min(94%, 1200px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas: "content visual";
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.course-category-intro__content {
    grid-area: content;
    min-width: 0;
}

.course-category-intro__visual {
    grid-area: visual;
    min-width: 0;
}

.course-category-heading {
    border-left: 6px solid var(--secondary-yellow);
    padding-left: 15px;
    margin: 0 0 20px;
}

.course-category-heading h1 {
    margin: 0 0 8px;
    color: var(--header-color);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
}

.course-category-heading__tagline {
    margin: 0;
    color: var(--background-color);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    line-height: 1.35;
}

.course-category-intro__description {
    margin: 0 0 28px;
    max-width: 36rem;
    color: var(--text-color);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
}

.course-category-intro__description p {
    margin: 0 0 14px;
    color: var(--text-color);
    font-size: inherit;
    line-height: inherit;
}

.course-category-intro__description p:last-child {
    margin-bottom: 0;
}

.course-category-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.course-category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 24px;

    border-radius: 10px;
    border: 2px solid transparent;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.course-category-btn--primary {
    background-color: var(--button-color);
    border-color: var(--button-color);
    color: var(--text-color);
}

.course-category-btn--primary:hover {
    background-color: var(--button-hover);
    border-color: var(--button-hover);
    transform: translateY(-2px);
}

.course-category-btn--secondary {
    background-color: transparent;
    border-color: var(--header-color);
    color: var(--header-color);
}

.course-category-btn--secondary:hover {
    background-color: rgba(33, 33, 62, 0.08);
    transform: translateY(-2px);
}

.course-category-btn:focus-visible {
    outline: 3px solid var(--secondary-yellow, #e4d100);
    outline-offset: 3px;
}

.course-category-intro__visual img,
.course-category-intro__visual video {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin-left: auto;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #ececf7;
}

.course-category-details {
    padding: clamp(28px, 5vw, 48px) 20px 0;
}

.course-category-details__inner {
    width: min(94%, 1200px);
    margin: 0 auto;
}

.course-category-details__intro {
    max-width: 760px;
    margin: 0 auto 28px;
}

.course-category-details__intro p,
.course-category-details__closing p,
.course-category-panel p {
    margin: 0 0 14px;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.75;
}

.course-category-details__intro p:last-child,
.course-category-details__closing p:last-child,
.course-category-panel p:last-child {
    margin-bottom: 0;
}

.course-category-details__panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 28px);
    margin-bottom: 28px;
}

.course-category-panel {
    background: #fff;
    border-radius: 18px;
    padding: clamp(20px, 3vw, 28px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.course-category-panel__heading {
    margin: 0 0 16px;
    color: var(--header-color);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    line-height: 1.35;
}

.course-category-panel__list {
    margin: 0 0 16px;
    padding-left: 1.25rem;
    color: var(--text-color);
}

.course-category-panel__list:last-child {
    margin-bottom: 0;
}

.course-category-panel__list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.course-category-panel__list li:last-child {
    margin-bottom: 0;
}

.course-category-details__closing {
    max-width: 760px;
    margin: 0 auto 12px;
}

.course-category-available {
    width: min(94%, 1200px);
    margin: clamp(28px, 5vw, 48px) auto 0;
    scroll-margin-top: 96px;
}

.course-category-page .course-listing {
    margin-top: 0;
}

.course-category-empty {
    margin-top: 0;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.course-category-empty .section_title {
    margin: 0 0 16px;
    text-align: left;
}

.course-category-empty .section_description {
    margin: 0;
    max-width: 40rem;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
}

.course-category-empty .section_description a {
    color: var(--header-color);
}

@media (max-width: 980px) {

    .course-category-intro__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "visual";
        gap: 28px;
    }

    .course-category-intro__content {
        text-align: center;
    }

    .course-category-heading {
        display: inline-block;
        text-align: left;
        max-width: 100%;
    }

    .course-category-intro__description {
        margin-left: auto;
        margin-right: auto;
    }

    .course-category-actions {
        justify-content: center;
    }

    .course-category-intro__visual img,
    .course-category-intro__visual video {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .course-category-details__panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .course-category-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .course-category-btn {
        width: 100%;
    }

    .course-category-available {
        scroll-margin-top: 72px;
    }
}

.content-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    width: min(92%, 1280px);
    margin: 0 auto;
    box-sizing: border-box;
}

/* LEFT — image or video */
.content-split__media {
    width: 100%;
}

/* RIGHT — text */
.content-split__copy {
    width: 100%;
}

/* Same styling for image AND video */
.content-split__media img,
.content-split__media video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

@media (max-width: 768px) {

    .content-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* BSL Courses hero transcript: span full hero grid width */
.bsl-courses-hero__transcript.et_pb_toggle_content {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(16px, 3vw, 24px);
    background: #ffffff;
    color: var(--header-color);
    border-radius: 16px;
}

/* =========================================
   COURSE MONTH TABS
   Dynamic start-month tablist above the existing course-listing grid.
========================================= */

.course-category-page .course-month-heading {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;

    color: var(--header-color);
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
}

.course-category-page .course-month-heading + .course-listing {
    margin-top: 16px;
}

.course-category-page .course-month-tabs {
    width: 100%;
    min-width: 0;
}

.course-category-page .course-month-tabs__heading {
    margin: 0 0 16px;
    color: var(--header-color);
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
}

.course-category-page .course-month-tablist-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 4px 0 0;
}

.course-category-page .course-month-tablist {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    width: max-content;
    min-width: 100%;
    border-bottom: 2px solid #d7dee8;
}

.course-category-page .course-month-tab {
    flex: 0 0 auto;
    appearance: none;
    margin: 0 0 -2px;
    padding: 12px 18px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--text-color);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
}

.course-category-page .course-month-tab:hover {
    color: var(--header-color);
    background: #f7f9fb;
}

.course-category-page .course-month-tab[aria-selected="true"] {
    color: var(--header-color);
    font-weight: 700;
    border-bottom-color: var(--secondary-yellow, #e4d100);
}

.course-category-page .course-month-tab:focus-visible {
    outline: 3px solid var(--secondary-yellow, #e4d100);
    outline-offset: 3px;
}

.course-category-page .course-month-panel {
    padding-top: 16px;
}

.course-category-page .course-month-panel[hidden] {
    display: none;
}

.course-category-page .course-month-panel .course-listing {
    margin-top: 0;
}

@media (max-width: 700px) {
    .course-category-page .course-month-heading {
        padding: 0 16px;
    }
}

/* Matches the extra 8px inset .course-item picks up at this width. */
@media (max-width: 480px) {
    .course-category-page .course-month-heading {
        padding: 0 24px;
    }
}

/* =========================================
   TERPS CORNER — ORDINARY SECTION TONES
   Backgrounds follow the visible section position rather than the subject,
   so hiding or reordering a section keeps the alternation intact.
   The tone class is assigned server-side in terps-corner.php.
   The bright "Join Our Interpreter Community" band keeps its own treatment
   and is deliberately excluded from this alternation.
========================================= */

.terps-page .terps-section--tone-light {
    background: var(--terps-white, #ffffff);
}

.terps-page .terps-section--tone-tint {
    background: var(--terps-primary-pale, #f3f8e3);
}

.terps-page .terps-section,
.terps-page .terps-cta-band {
    scroll-margin-top: 24px;
}

/* =========================================
   NAVIGATION TOGGLE

   The button that opens the navigation once the header script has measured
   that the full row no longer fits. It is hidden until then, and both it and
   the collapsed presentation require .nav-enhanced, which only the script
   adds, so without JavaScript the links render as ordinary navigation.
========================================= */

.nav-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    padding: 0;

    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;

    color: #ffffff;
    cursor: pointer;
}

.nav-toggle__bars {
    position: relative;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 22px;
    height: 2px;

    background: currentColor;
    border-radius: 2px;

    transition: transform 0.2s ease, background 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bars::before {
    top: -7px;
}

.nav-toggle__bars::after {
    top: 7px;
}

.nav-toggle:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--secondary-yellow, #e4d100);
}

.nav-toggle:focus-visible {
    outline: 3px solid var(--secondary-yellow, #e4d100);
    outline-offset: 3px;
}

/* Open state turns the three bars into a close cross. */
.site-header.nav-open .nav-toggle__bars {
    background: transparent;
}

.site-header.nav-open .nav-toggle__bars::before {
    transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle__bars::after {
    transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .nav-toggle__bars,
    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        transition: none;
    }
}

/* =========================================
   NAVIGATION FIT STATE

   Whether the full navigation is shown is decided from the measured content,
   not from a chosen viewport width. The header script compares two live
   measurements and puts .nav-fit-collapsed on .site-header when the whole row
   — logo, every link, both header gaps and Sign in — no longer fits the room
   the row actually has. There is deliberately no max-width media query here:
   change a label or add a link and the collapse point moves on its own.

   Every rule below walks the real header with child combinators
   (> .header-inner > .header-row), so none of it can reach the hidden copy of
   the row the script measures, which must always lay out as the expanded
   single-line version.
========================================= */

/*
 * The hidden copy of the header row used for the measurement, plus the track
 * that reports how wide a gutter-respecting row may be. Both are zero-sized
 * and clipped, so neither adds height, scroll width or a focus stop.
 */
.nav-fit-track,
.nav-fit-probe {
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.nav-fit-track {
    width: calc(100% - 2 * var(--header-gutter));
}

.nav-fit-probe {
    width: 0;
}

/*
 * The copy is laid out as the expanded row at its natural width. Only
 * structural properties are restated: no font size, padding or gap appears
 * here, so the measurement always comes from the real stylesheet and follows
 * any later change to the navigation's wording or styling.
 */
.site-header .nav-fit-probe .header-row {
    width: max-content;
    max-width: none;
    flex-wrap: nowrap;
}

.site-header .nav-fit-probe .logo-column,
.site-header .nav-fit-probe .main-menu,
.site-header .nav-fit-probe .contact-column {
    flex: 0 0 auto;
    order: 0;
}

.site-header .nav-fit-probe .main-menu {
    display: flex;
}

.site-header .nav-fit-probe .menu-list {
    flex-direction: row;
    align-items: center;
}

.site-header .nav-fit-probe .main-menu,
.site-header .nav-fit-probe .menu-list,
.site-header .nav-fit-probe .menu-list li,
.site-header .nav-fit-probe .menu-list a {
    width: auto;
    max-width: none;
}

/*
 * Collapsed state.
 *
 * row-gap is zeroed so the wrapped menu row adds no height while closed;
 * .menu-list carries its own padding once open, which keeps the hero directly
 * below the compact header.
 */
.site-header.nav-fit-collapsed > .header-inner > .header-row {
    flex-wrap: wrap;
    row-gap: 0;
}

/*
 * Sizing the logo to its content and letting the button's auto margin absorb
 * the free space keeps the button beside the logo with Sign in still on the
 * right, rather than stranding it mid-row.
 */
.site-header.nav-fit-collapsed > .header-inner > .header-row > .logo-column {
    flex: 0 0 auto;
}

.site-header.nav-enhanced.nav-fit-collapsed > .header-inner > .header-row > .nav-toggle {
    display: inline-flex;
    margin-right: auto;
}

.site-header.nav-enhanced.nav-fit-collapsed > .header-inner > .header-row > .main-menu {
    display: none;
}

.site-header.nav-enhanced.nav-fit-collapsed.nav-open > .header-inner > .header-row > .main-menu {
    display: flex;
}

/* The expanded panel: links take their own full-width row and stack. */
.site-header.nav-fit-collapsed > .header-inner > .header-row > .main-menu {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
}

.site-header.nav-fit-collapsed > .header-inner > .header-row > .main-menu > .menu-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 12px 0;
}

.site-header.nav-fit-collapsed > .header-inner > .header-row > .main-menu > .menu-list > li {
    width: 100%;
}

.site-header.nav-fit-collapsed > .header-inner > .header-row > .main-menu > .menu-list > li > a {
    width: 100%;
    justify-content: center;
}

/* Scoped to form.php: shared staff and login forms are not affected. */
.form-page {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 4px 32px;
    background: #f5f4ff;
    color: #272719;
}

.form-page *, .form-page *::before, .form-page *::after {
    box-sizing: border-box;
}

.form-page .form-page-guidance {
    max-width: none;
    margin: 0 auto 12px;
    padding: 0 clamp(16px, 2.7vw, 40px);
    font-size: 1rem;
    line-height: 1.6;
    color: #425466;
}

.form-page .career_application {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.form-page .application_card {
    padding: clamp(24px, 2.7vw, 40px);
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgb(23 43 64 / 6%);
}

.form-page .application_title {
    margin: 0 0 30px;
    font-size: clamp(1.75rem, 3vw, 2rem);
    line-height: 1.35;
    color: #272719;
    overflow-wrap: anywhere;
}

.form-page .application_form {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
}

.form-page .form-group {
    min-width: 0;
    margin: 0;
    gap: 8px;
}

.form-page .form-group label {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #272719;
}

.form-page .form-field-help {
    display: block;
    color: #595963;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 400;
}

.form-page .application_form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.form-page .application_form select,
.form-page .application_form textarea {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background-color: #fff;
    color: #272719;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
}

.form-page .application_form select {
    padding-right: 44px;
}

.form-page .application_form textarea {
    min-height: 170px;
    resize: vertical;
}

.form-page .application_form input:focus,
.form-page .application_form select:focus,
.form-page .application_form textarea:focus,
.form-page .btn-submit:focus-visible {
    outline: 3px solid #1765a1;
    outline-offset: 3px;
    box-shadow: none;
}

.form-page .application_form .error-field {
    border: 2px solid #b42318;
    background-color: #fff8f7;
}

.form-page .error {
    display: block;
    margin: 0;
    color: #b42318;
    font-size: .95rem;
    line-height: 1.5;
}

.form-page .form-validation-summary {
    padding: 14px 18px;
    border-left: 4px solid #b42318;
    border-radius: 10px;
    background: #fff8f7;
    color: #8a2119;
    line-height: 1.5;
}

.form-page .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #f3f6fa;
}

.form-page .application_form input[type="checkbox"] {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 2px 0 0;
}

.form-page .checkbox-group label {
    min-height: 44px;
    cursor: pointer;
    font-weight: 400;
}

.form-page .upload-area input[type="file"] {
    width: 100%;
    height: 100%;
    margin: 0;
}

.form-page .upload-area:focus-within {
    outline: 3px solid #1765a1;
    outline-offset: 3px;
}

.form-page .upload-text {
    overflow-wrap: anywhere;
}

.form-page .btn-submit {
    width: 100%;
    min-height: 54px;
    margin: 8px 0 0;
    border-radius: 14px;
    background: #8484ef;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.form-page .btn-submit:hover {
    background: #706fdb;
    transform: none;
}

.form-page .application_form [hidden] {
    display: none !important;
}

.form-page .form-step-progress {
    padding: 16px;
    border-radius: 14px;
    background: #f3f6fa;
}

.form-page .form-step-progress p {
    margin: 0 0 10px;
    color: #272719;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.form-page .form-step-progress progress {
    display: block;
    width: 100%;
    height: 10px;
    accent-color: #1765a1;
}

.form-page .form-step-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #d8e1eb;
}

.form-page .form-step-navigation button {
    flex: 1 1 140px;
    width: auto;
    min-height: 54px;
    margin: 0;
    padding: 14px 24px;
    border: 1px solid #8484ef;
    border-radius: 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.form-page .form-step-next {
    background: #8484ef;
    color: #fff;
}

.form-page .form-step-back {
    background: #fff;
    color: #173e63;
}

.form-page .form-step-next:hover { background: #706fdb; }
.form-page .form-step-back:hover { background: #e4edf6; }

.form-page .form-step-navigation button:focus-visible,
.form-page .form-step-progress:focus {
    outline: 3px solid #1765a1;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .form-page { padding: 8px 4px 24px; }
    .form-page .application_card { padding: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .form-page .application_form * { transition: none; }
}
