    /* Course thumbnail shimmer placeholder — 800×533 aspect ratio */
    img.js-lazy-img {
        display: block;
        width: 100%;
        aspect-ratio: 800 / 533;
        background: linear-gradient(249deg, #c1c1c1 25%, #e2e5e9 50%, #bebebe 75%);
        background-size: 200% 100%;
        animation: js-lazy-shimmer 1.4s ease infinite;
    }
    @keyframes js-lazy-shimmer {
        0%   { background-position: 100% 0; }
        100% { background-position: -100% 0; }
    }
    /* Square/round shimmer for instructor/teacher avatar images */
    img.js-lazy-img.js-lazy-avatar {
        aspect-ratio: 1 / 1;
        border-radius: 50%;
    }
    /* Chat message notifications only — solid theme-color background */
    #toast-container .toast-chat-msg.toast-info { background-color: var(--theme-color) !important; opacity: 1 !important; }
    #toast-container .toast-chat-msg.toast-info:hover { opacity: 1 !important; }
    .plyr__video-wrapper{
        min-height: 500px;
    }
    .navbar .dropdown .dropdown-toggle:after{
        display:none !important;
    }
    .note-editor.note-airframe,
    .note-editor.note-frame {
        border-top-left-radius: 30px !important;
        border-top-right-radius: 30px !important;
    }

    .note-editor .note-toolbar,
    .note-popover .popover-content {
        border-top-left-radius: 33px;
        border-top-right-radius: 33px;
    }

    .note-btn-group .dropdown-toggle::after {
        content: none !important;
    }

    .note-editor .note-toolbar .note-color-all .note-dropdown-menu,
    .note-popover .popover-content .note-color-all .note-dropdown-menu {
        min-width: 350px !important;
    }

    .note-dropdown-item blockquote {
        border-left: solid 4px red;
    }

    ` .note-dropdown-item pre {
        border-radius: 3px;
        border: solid 1px grey;
        background: #e8e8e8;
        color: grey;
        font-size: 14px;
    }

    .note-dropdown-item h1 {
        font-size: 32px;

    }

    .note-dropdown-item h2 {
        font-size: 28px;

    }

    .note-dropdown-item h3 {
        font-size: 24px;

    }

    .note-dropdown-item h4 {
        font-size: 20px;

    }

    .note-dropdown-item h5 {
        font-size: 18px;

    }

    .note-dropdown-item h6 {
        font-size: 16px;

    }

    .navbar-nav .dropdown-menu {
        border-radius: 33px;
    }

    .note-editor .note-toolbar,
    .note-popover .popover-content {
        padding: 8px 0 10px 10px !important;
    }

    .note-group-image-url {
        display: none !important;
    }

    .note-modal-content {
        border-radius: 28px;
    }

    .note-modal-header {
        border-radius: 33px;
    }

    .note-input {
        border-radius: 33px;
        padding-left: 8px;
    }

    .c-note-info-items {
        padding-top: 10px;
        padding-left: 10px;
    }

    .note-input::file-selector-button {
        border-radius: 33px;
    }

    .note-modal-footer {
        display: none;
    }

    .ui-datepicker-calendar thead tr th {
        width: 29px !important;
        min-width: 32px !important;
        font-weight: 400;
    }

    #ui-datepicker-div {
        border-radius: 33px;
        padding: 10px;
        width: fit-content;
    }

    /* HTML: <div class="loader"></div> */
    .jloader {
        width: 50px;
        aspect-ratio: 1;
        border-radius: 50%;
        border: 8px solid #0000;
        border-right-color: #ffa50097;
        position: relative;
        animation: l24 1s infinite linear;
    }

    .jloader:before,
    .jloader:after {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 50%;
        border: inherit;
        animation: inherit;
        animation-duration: 2s;
    }

    .jloader:after {
        animation-duration: 4s;
    }

    @keyframes l24 {
        100% {
            transform: rotate(1turn)
        }
    }

    .br-33 {
        border-radius: 33px;
    }

    .c-unread-count {
        background: red;
        color: white;
        border-radius: 50%;
        padding: 2px 7px;
        font-size: 13px;
        font-weight: bold;
        margin-left: 10px;
    }

    .pointer {
        cursor: pointer;
    }

    .instructor-item .fav-img {
        z-index: 2;
        top: 14px;
        right: 10px;
        pointer: cursor;
    }

    .instructor-item .deleteTrashIcon {
        font-size: 34px;
        color: #e5a724;
    }

    .instructor-item .addToWishlist.icon {
        width: 40px !important;
        height: 40px !important;
    }

    .instructor-item .addToWishlist.icon i {
        font-size: 20px;
    }

    .instructor-item .chat-img {
        z-index: 2;
        top: 14px;
        left: 10px;
        width: 40px !important;
        height: 40px !important;
        cursor: pointer;
    }

    .addToWishlist.icon {
        border-radius: 30px;
        background: #e70000;
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.4);
    }

    .addToWishlist.icon i {
        font-size: 26px;
        padding-top: 4px;
        transform: scale(1);
    }

    .addToWishlist.active {
        color: #e5a924;
    }

    .addToWishlist.active i {
        /*animation: bigGentleBeat 1.5s infinite;*/
    }

    .addToWishlist.liked i {
        animation: bigPulse 0.3s ease-in-out;
        /*transform: scale(1.4);*/
    }

    .create-certificate-row .sticky-top {
        top: 120px !important;
    }

    .instructor-my-course-item .course-tag.error-badge {
        background-color: var(--orange-deep);
    }

    .instructor-my-course-item .course-tag.error-badge,
    .instructor-my-course-item .course-tag.unpublish-badge {
        left: 15px;
        right: auto;
        color: var(--white-color);
    }
    .popular-info-container .course-heading, .instructor-name-certificate{
            display: -webkit-box;
            -webkit-line-clamp: 2;       /* ellipsis after 2 lines */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        
            line-height: 1.4;            /* adjust if needed */
            min-height: calc(2 * 1em * 1.4);  /* always minimum 2 lines */
        }
    .text-capital {
        text-transform: capitalize;
    }

    .popover-container {
        position: relative;
        display: inline-block;
        cursor: pointer;
    }

    .popover-text {
        visibility: hidden;
        background-color: #333;
        color: #fff;
        text-align: center;
        padding: 6px 10px;
        border-radius: 6px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        /* Position above */
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .popover-text::after {
        content: "";
        position: absolute;
        top: 100%;
        /* Arrow below the popover */
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }

    .popover-container:hover .popover-text {
        visibility: visible;
        opacity: 1;
    }

    .summernote-video-thumb {
        position: relative;
        display: inline-block;
        cursor: pointer;
        border-radius: 33px;
    }

    .summernote-video-thumb::after {
        content: "▶";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 50px;
        color: white;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
        pointer-events: none;
        /* lets clicks pass through */
    }
    .summer-note-video-remove-video-btn{
        position:absolute;top:20px;right:16px;background:red;color:white; border:none;border-radius:50%;width:24px;height:24px; cursor:pointer;z-index:995;
    }
    .summer-video-status-parent-div{position: absolute;top: 50%;width:100%;color: white;padding: 6px 12px;}
    .video-status-overlay{
        border-radius: 33px;font-size: 20px;background: #e5a926;min-width: 50px;min-height: 50px;display: flex;justify-content: center;align-items: center;
    }
    
    .summernote-video-container .js-player{
        min-height: 400px !important;
    }
    .non-editable {
      /*border: 1px dashed #999;*/
      /*background: #f5f5f5;*/
      /*padding: 8px 12px;*/
      /*margin: 6px 0;*/
      /*border-radius: 6px;*/
      /*color: #444;*/
      user-select: none; /* text can’t be selected */
      pointer-events: none; /* mouse clicks pass through */
    }

    .video-thumb-wrapper {
      position: relative;
      display: inline-block;
      cursor: pointer;
    }
    
    .video-thumb-wrapper img.thumbnail {
      display: block;
      max-width: 100%;
      height: auto;
    }


    @keyframes bigPulse {
        0% {
            transform: scale(1);
        }

        25% {
            transform: scale(1.5);
        }

        50% {
            transform: scale(1.6);
            /* Much bigger size at peak */
        }

        75% {
            transform: scale(1.5);
        }

        100% {
            transform: scale(1);
        }
    }

    .c-white{
        color:white;
    }

    @keyframes bigGentleBeat {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.2);
        }

        /* Bigger pulse when active */
        100% {
            transform: scale(1);
        }
    }


    .ins-side-menu-img {
        width: 36px !important;
        height: 36px !important;
    }

    .c-upload-file-item {
        border: solid #535353 2px;
        color: #535353;
        border-radius: 33px;
        font-weight: bold;
        padding: 8px 20px;
        background: azure;
        margin-bottom: 10px;
    }

    .c-upload-file-item .sprater-slash {
        font-size: 20px;
    }

    .c-upload-file-item i {
        font-size: 20px;
        color: red;
    }

    .c-upload-file-item div {
        max-width: 25%;
        text-wrap: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .c-upload-file .file-name {
        max-width: 25%;
    }

    .summer-note-video-remove-video-btn {
        display: none;
    }

    .note-editing-area .summer-note-video-remove-video-btn {
        display: block !important;
    }
    /* Overlay styling */
    .j-main-loader-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgb(102 102 102 / 39%);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }
    
    /* Spinner styling */
    .j-main-loader {
        border: 3px solid #dbdbdb;
        border-top: 3px solid #e5a926;
        border-radius: 50%;
        width: 62px;
        height: 62px;
        animation: j-main-spin 1s linear infinite;
    }
    
    @keyframes j-main-spin {
      to {
        transform: rotate(360deg);
      }
    }
    /*SHIMMER */
     .shimmer {
          position: relative;
          display: inline-block;
          background: #e0e0e0;
          overflow: hidden;
        }
        
        /* shimmer animation overlay */
        .shimmer::after {
          content: "";
          position: absolute;
          top: 0;
          left: -150%;
          width: 150%;
          height: 100%;
          background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent
          );
          animation: shimmer 1.5s infinite;
        }
        
        @keyframes shimmer {
          100% {
            left: 150%;
          }
        }
/*Media Query*/
    /* Tablet (portrait and landscape) */
    @media (min-width: 768px) and (max-width: 1024px) {
        .summernote-video-modal-dialog {
            max-width: 90% !important;
        }
    }

    /* Laptop / small desktops */
    @media (min-width: 1025px) and (max-width: 1366px) {

        /* Styles for laptops */
        .summernote-video-modal-dialog {
            max-width: 90% !important;
        }
        .plyr--video, .js-player {
            min-height: 60vh;
            width:100%;
            border-radius:33px;
        }
    }

    /* Extra large screens (big desktops, TVs, 2K/4K monitors) */
    @media (min-width: 1367px) {

        /* Styles for extra-large screens */
        .summernote-video-modal-dialog {
            max-width: 80% !important;
        }
        .plyr--video, .js-player {
            min-height: 60vh;
            width:100%;
            border-radius:33px;
        }
    }

    @media screen and (max-width: 600px) {
        /* CSS rules for screens with a maximum width of 600px */
    }
    @media only screen and (min-width: 300px) and (max-width: 410px) {
        .modal-body {
            padding: 0rem !important;
        }
    }
/*SUPPORT CHAT POPUP*/
    /* ── Floating button ─────────────────────────────── */
    #supp-widget-btn {
        position: fixed;
        bottom: 28px; right: 28px;
        width: 60px; height: 60px;
        border-radius: 50%;
        background: var(--theme-color);
        border: none; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 20px rgba(0,0,0,.25);
        z-index: 9990;
        transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
    }
    #supp-widget-btn:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(0,0,0,.3); }
    #supp-widget-btn svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
    #supp-widget-btn.supp-btn-open svg { transform: rotate(180deg) scale(.9); }
    #supp-unread-badge {
        position: absolute; top: -3px; right: -3px;
        min-width: 22px; height: 22px; padding: 0 5px;
        background: var(--theme-color); color: #fff;
        border-radius: 11px; font-size: 11px; font-weight: 700; line-height: 22px; text-align: center;
        border: 2px solid #fff; pointer-events: none;
        animation: suppBadgePop .3s cubic-bezier(.34,1.56,.64,1);
    }
    @keyframes suppBadgePop { from { transform: scale(0); } to { transform: scale(1); } }

    /* ── Popup ───────────────────────────────────────── */
    #supp-popup {
        position: fixed;
        bottom: 102px; right: 28px;
        width: 340px; height: auto;
        background: #fff;
        border-radius: 22px;
        box-shadow: 0 16px 48px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.07);
        z-index: 9989;
        overflow: hidden;
        display: none;
        flex-direction: column;
        transform-origin: bottom right;
    }
    #supp-popup.supp-open {
        display: flex;
        animation: suppPopIn .32s cubic-bezier(.34,1.56,.64,1) forwards;
    }
    #supp-popup.supp-closing {
        animation: suppPopOut .2s cubic-bezier(.55,0,.1,1) forwards !important;
    }
    @keyframes suppPopIn {
        0%   { opacity: 0; transform: scale(0.78) translateY(24px); }
        65%  { opacity: 1; transform: scale(1.03) translateY(-4px); }
        100% { opacity: 1; transform: scale(1)    translateY(0);    }
    }
    @keyframes suppPopOut {
        from { opacity: 1; transform: scale(1)    translateY(0);    }
        to   { opacity: 0; transform: scale(0.82) translateY(18px); }
    }

    /* ── Header ──────────────────────────────────────── */
    .supp-hdr {
        background: var(--theme-color);
        padding: 13px 14px;
        display: flex; align-items: center; gap: 10px;
        flex-shrink: 0;
    }
    .supp-hdr-avt-wrap { position: relative; flex-shrink: 0; }
    .supp-hdr-avt-wrap img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.45); }
    .supp-hdr-dot { position: absolute; bottom: 1px; right: 1px; width: 11px; height: 11px; background: #22c55e; border-radius: 50%; border: 2px solid var(--theme-color); }
    .supp-hdr-info { flex: 1; min-width: 0; }
    .supp-hdr-name { font-weight: 700; font-size: 14px; color: #fff; line-height: 1.2; }
    .supp-hdr-sub  { font-size: 11px; color: rgba(255,255,255,.72); margin-top: 2px; }
    .supp-hdr-btns { display: flex; align-items: center; gap: 5px; }
    .supp-hdr-full {
        background: rgba(255,255,255,.2); border: none; border-radius: 8px;
        color: #fff; font-size: 11px; font-weight: 600; padding: 5px 9px;
        cursor: pointer; text-decoration: none; white-space: nowrap;
        transition: background .15s;
    }
    .supp-hdr-full:hover { background: rgba(255,255,255,.35); color: #fff; }
    .supp-hdr-close {
        background: rgba(255,255,255,.2); border: none; border-radius: 50%;
        color: #fff; font-size: 15px; line-height: 1;
        width: 30px; height: 30px;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: background .15s;
    }
    .supp-hdr-close:hover { background: rgba(255,255,255,.38); }

    /* ── Body ───────────────────────────────────────── */
    .supp-body {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 50px 20px; gap: 16px; background: #f5f6f8; text-align: center;
    }
    .supp-body p { font-size: 14px; color: #666; margin: 0; line-height: 1.5; }
    .supp-go-btn {
        display: inline-block; padding: 10px 24px;
        background: var(--theme-color); color: #fff;
        border-radius: 24px; font-size: 14px; font-weight: 600;
        text-decoration: none; transition: opacity .15s;
    }
    .supp-go-btn:hover { opacity: .88; color: #fff; }

    @media (max-width: 480px) {
        #supp-popup     { width: calc(100vw - 20px); right: 10px; bottom: 86px; height: 420px; }
        #supp-widget-btn{ bottom: 18px; right: 14px; }
    }

    /* Search dropdown — "See all results" footer item */
    .search-see-all-item a {
        padding: 8px 0 4px;
        display: flex;
        align-items: center;
        font-weight: 600;
        color: var(--theme-color) !important;
        border-top: 1px solid #f0f0f0;
        margin-top: 4px;
    }
    .search-see-all-item a:hover { opacity: .8; }

    /* ===== Home AJAX sections: shimmer skeleton + error/retry ===== */
    .home-ajax-section { min-height: 120px; }

    /* Skeleton building blocks (reuse the js-lazy shimmer gradient) */
    .hs-skel {
        position: relative;
        overflow: hidden;
        background: #e9ecef;
        border-radius: 8px;
    }
    .hs-skel::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 100%);
        animation: hs-shimmer 1.4s infinite;
    }
    @keyframes hs-shimmer { 100% { transform: translateX(100%); } }

    .hs-skel-title { height: 26px; width: 240px; max-width: 60%; margin-bottom: 8px; }
    .hs-skel-sub   { height: 14px; width: 340px; max-width: 80%; margin-bottom: 28px; }
    .hs-skel-card  { height: 300px; width: 100%; }
    .hs-skel-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    @media (max-width: 1199px) { .hs-skel-row { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 767px)  { .hs-skel-row { grid-template-columns: 1fr; } }

    /* Error + retry */
    .home-section-error {
        padding: 48px 16px;
        text-align: center;
    }
    .home-section-error-icon { font-size: 40px; line-height: 1; margin-bottom: 12px; opacity: .85; }
    .home-section-error-text {
        font-size: 16px;
        font-weight: 500;
        color: #6c757d;
        margin-bottom: 18px;
    }
    .home-section-retry {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 0;
        cursor: pointer;
        background: var(--theme-color, #e5a825);
        color: #fff;
        font-weight: 600;
        font-size: 14px;
        padding: 10px 26px;
        border-radius: 30px;
        transition: opacity .2s ease, transform .15s ease;
    }
    .home-section-retry:hover { opacity: .9; }
    .home-section-retry:active { transform: scale(.97); }
    .home-section-retry[disabled] { opacity: .6; cursor: default; }
    .home-section-retry .hs-spin {
        width: 15px; height: 15px;
        border: 2px solid rgba(255,255,255,.5);
        border-top-color: #fff;
        border-radius: 50%;
        animation: hs-rotate .7s linear infinite;
    }
    @keyframes hs-rotate { 100% { transform: rotate(360deg); } }


/* ===== Extracted from Frontend app layout ===== */
        .iti #register_phone_code {
            padding-left: 0 !important;
            visibility: hidden;
            opacity: 0;
        }

        .iti .iti__flag-container {
            width: 100%;
        }

        .iti.iti--allow-dropdown {
            width: 100%;
        }

        .iti .iti__selected-flag {
            padding: 0 0.75rem 0 0.5rem;
            border-radius: 30px;
            width: 100%;
            border: 1px solid #dae1e7;
            justify-content: start;
        }

        .iti .iti__selected-flag {
            border: 2px solid #ebf0f7;
        }

        .iti .iti__country-list .iti__flag {
            border-radius: 30px;
        }

        .iti .iti__selected-dial-code {
            color: #5e6d77;
        }

        .iti .iti__arrow {
            margin-left: auto;
        }

        .iti.iti--separate-dial-code .iti__selected-flag {
            background-color: rgb(255 255 255);
        }

        .iti.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
            background-color: rgb(255 255 255);
        }

        .iti .iti__selected-flag .iti__flag {
            border-radius: 10px;
        }

        .iti.iti--allow-dropdown input,
        .iti--allow-dropdown input[type=text],
        .iti--allow-dropdown input[type=tel],
        .iti--separate-dial-code input,
        .iti--separate-dial-code input[type=text],
        .iti--separate-dial-code input[type=tel] {
            padding-left: 3.6rem;
        }

        .iti .iti__flag-container ::-webkit-scrollbar-track {
            -webkit-box-shadow: inset 0 0 5px #adaaaa;
            border-radius: 8px;
            background-color: #F5F5F5;
        }

        .iti .iti__flag-container ::-webkit-scrollbar {
            width: 10px;
        }

        .iti .iti__flag-container ::-webkit-scrollbar-thumb {
            border-radius: 10px;
            -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
            background-color: #afb0b3;
        }

        .iti .iti__country-list {
            box-shadow: -2px 2px 10px rgb(0 0 0 / 24%), 1px 7px 10px rgb(0 0 0 / 24%);
            border: 0;
            margin-top: 10px;
            border-top-left-radius: 30px;
            border-top-right-radius: 8px;
            border-bottom-right-radius: 8px;
            border-bottom-left-radius: 30px;
            padding-top: 0;
            padding-bottom: 10px;
            min-height: 250px;
            min-width: 380px;
        }

        .iti .iti__selected-flag {
            border-radius: 33px;
        }

        .iti .iti__country-list .form-control,
        .iti .iti__country-list .form-control,
        .iti .iti__country-list .form-group .form-control {
            padding: 10px 16px 10px 43px;
            height: 45px;
            width: 100%;
            border: 0;
            border-radius: 0;
        }

        .iti .iti__country-list .form-group,
        .iti .iti__country-list .form-group,
        .iti .iti__country-list .form-group {
            margin: 0;
        }

        .iti .iti__country-list .form-group .input-icon {
            position: absolute;
            top: 22px;
            left: 15px;
            font-size: 20px;
            transform: translateY(-50%);
            color: #acb5be;
            line-height: 0
        }

        .swal2-popup,
        .swal2-confirm,
        .swal2-cancel {
            border-radius: 33px !important;
        }

        .swal2-html-container p {
            line-height: 30px;
        }

        .spinner {
            display: block;
            width: 200px;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            font-family: Montserrat, serif !important;
        }

        .swal2-close:focus-visible {
            outline: none !important;
            box-shadow: 0px 0px !important;
        }

        .note-editor.note-airframe,
        .note-editor.note-frame {
            border-top-left-radius: 30px !important;
            border-top-right-radius: 30px !important;
        }

        .note-editor .note-toolbar,
        .note-popover .popover-content {
            border-top-left-radius: 33px;
            border-top-right-radius: 33px;
        }

        .form-control:focus {
            border-color: inherit;
            box-shadow: none;
            border-color: var(--theme-color);
        }

        .form-select:focus {
            border-color: inherit;
            box-shadow: none;
            border-color: var(--theme-color);
        }

        .ui-datepicker-calendar thead tr th {
            width: 29px !important;
            min-width: 32px !important;
            font-weight: 400;
        }

        #ui-datepicker-div {
            border-radius: 33px;
            padding: 10px;
            width: fit-content;
        }

        .ui-state-default,
        .ui-widget-content .ui-state-default,
        .ui-widget-header .ui-state-default,
        .ui-button,
        html .ui-button.ui-state-disabled:hover,
        html .ui-button.ui-state-disabled:active {
            color: green !important;
        }

        .ui-state-disabled .ui-state-default {
            color: red !important;
        }

        .ui-state-active,
        .ui-widget-content .ui-state-active,
        .ui-widget-header .ui-state-active,
        a.ui-button:active,
        .ui-button:active,
        .ui-button.ui-state-active:hover {
            background: #ffde98;
        }


/* ===== Extracted from Frontend app layout ===== */
        .main-menu .dropdown-menu {
            transition: opacity 0.3s ease, visibility 0.3s ease;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        /* Show menu on hover */
        .main-menu .dropdown:hover>.dropdown-menu,
        .dropdown-menu:hover {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        /* Submenu styling */
        .main-menu .submenu {
            transition: opacity 0.3s ease, visibility 0.3s ease;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        /* Show submenu on hover */
        .main-menu .dropdown-item:hover+.submenu,
        .submenu:hover {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .user-dropdown-item-box .dropdown-item .ins-side-menu-img {
            min-width: 32px;
            min-height: 32px;

        }
        /*.plyr--video, .js-player {*/
        /*    min-height: 60vh;*/
        /*    width:100%;*/
        /*    border-radius:33px;*/
        /*}*/
        .plyr__poster{
            /*min-height: 54vh;*/
        }


/* ===== Extracted from Frontend app layout ===== */
        .modal-content {
            border-radius: 33px !important;
        }

        .login-dialog-body {
            background: #c6d0e8;
            border-radius: 33px !important;
            padding-bottom: 0px !important;
        }

        .login-form-container {
            left: 56px;
            top: 48px;
            width: 100%;
            margin-top: 28px;
        }

        .login-form-container input {
            height: 42px;
            background: #f3e6c4 !important;
            border-radius: 16px !important;
        }

        .login-form-container label {
            padding-left: 2rem;
            font-weight: bold;
            font-size: 16px;
        }

        .login-btn {
            width: 50% !important;
            height: 38px !important;
        }

        @media only screen and (max-width: 470px) {
            .login-form-container {
                margin-top: 0px;
            }
            .secure_model_style .login-form-container input {
                height: 33px !important;
                    width: 70%;
            }
            .secure_model_style .login-form-container label {
                padding-left: 10px !important;
                padding-top: 1px !important;
            }
             .secure_model_style .login-form-container{
                left: 56px;
                top: 11px;
            }
        }
        button.disabled:hover, button.disabled.theme-button1:hover, button.disabled.theme-button2:hover{
            color: black !important;
            background: white !important;
        }
         .owl-theme .owl-nav [class*=owl-]:hover {
                color: black !important;
                text-decoration: none
            }


/* ===== Extracted from Frontend app layout ===== */
        .js-cookie-consent {
            display: none;
        }


/* ===== Extracted from Frontend footer ===== */
    /* Footer "Install the ABCPlatform App" button: the site's gold pill */
    .footer-install-app-wrap{
        margin-top: 28px;
        margin-bottom: 14px;
    }
    @media (min-width: 992px){
        /* level with the social icons of the first column (the footer script sets the
           exact gap, as the first column's height depends on its text) */
        .footer-install-app-wrap{ margin-top: 62px; margin-bottom: 0; }
    }
    .footer-install-app{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        /* as tall as the social icons (.footer-social-icon, 35px) */
        min-height: 35px;
        padding: 2px 22px;
        border: 0;
        border-radius: 999px;
        background: var(--theme-color, #af990a);
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
        cursor: pointer;
        transition: filter .2s ease, transform .2s ease;
    }
    @media (min-width: 576px){
        /* one line, so it stays as tall as the icons */
        .footer-install-app{ white-space: nowrap; }
    }
    @media (min-width: 992px) and (max-width: 1199.98px){
        .footer-install-app{ padding: 2px 14px; }
    }
    .footer-install-app:hover{
        filter: brightness(1.08);
        transform: translateY(-1px);
    }
    .footer-install-app:focus-visible{
        outline: 2px solid #fff;
        outline-offset: 3px;
    }
    .no-event-page-heading{
        width:100%;
        text-align:center;
        position: absolute;
        top: 30px;
        left: 0px;
        display:flex;
        justify-content:center;
    }
    /* The popups in the site footer use a div (not a page heading): same look as the h1 */
    .no-event-page-heading .no-event-page-title{
        font-weight: 500;
        line-height: 1.2;
    }
    .no-event-page-heading h1,
    .no-event-page-heading .no-event-page-title{
        background: #e5a924;
        color:white;
        border-radius:33px;
        padding:30px;
        margin: 30px 20px;
        text-align:center;
        width: max-content;
        font-size:20px;
    }
        .modal-content {
            border-radius:33px !important;
        }
        
        .login-dialog-body{
            background: #c6d0e8;
            border-radius:33px !important;
            padding-bottom: 0px !important;
            padding: 10px !important;
        }
        .login-form-container{
            left: 56px;
            top: 48px;
            width: 100%;
            margin-top: 28px;
        }
        .login-form-container input{
            height: 42px;
            background: #f3e6c4 !important;
            border-radius: 16px !important;
        }
        .login-form-container label{
            padding-left: 2rem;
            font-weight: bold;
            font-size: 16px;
        }
        .login-btn{
            width: 50% !important;
            height: 38px !important;
        }
        .btn-close{
            z-index:999;
            top: 30px;
            background-color:white;
        }
        .btn-close span{
            color:white;
        }
        .event-modal {
            overflow: hidden !important;
        }
        .modal-backdrop{
            z-index: 998;
        }
        @media only screen and (max-width: 470px) {
          .login-form-container {
            margin-top: 0px;
          }
        }


/* ===== Extracted from Instructor layout ===== */
        .swal2-popup, .swal2-modal, .swal2-confirm, .swal2-cancel{
            border-radius: 33px !important;
        }
        .swal2-html-container p{
            line-height: 30px;
        }
        .spinner {
            display: block;
            width: 200px;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            font-family: Montserrat, serif !important;
        }
        .custom_border{
            border-radius: 33px !important;
        }
        .form-control:focus{
            border-color: inherit;
            box-shadow: none;
            border-color: var(--theme-color);
        }
        .form-select:focus {
            border-color: inherit;
            box-shadow: none;
            border-color: var(--theme-color);
        }
        @media(max-width: 576px){
            #msform{
                margin-top: 16px;
            }
            .lecture_types{
                flex-wrap: wrap !important;
            }
            #submitForReview{
                margin-top: 12px;
            }
        }


/* ===== Extracted from Instructor layout ===== */
        #progressbar{
            border-radius:33px;
        }


/* ===== Extracted from Organization layout ===== */
        .swal2-popup, .swal2-confirm, .swal2-cancel{
            border-radius: 33px !important;
        }
        .swal2-html-container p{
            line-height: 30px;
        }
        .spinner {
            display: block;
            width: 200px;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            font-family: Montserrat, serif !important;
        }
        .form-control:focus{
            border-color: inherit;
            box-shadow: none;
            border-color: var(--theme-color);
        }
        .form-select:focus {
            border-color: inherit;
            box-shadow: none;
            border-color: var(--theme-color);
        }
        #progressbar{
            border-radius:33px;
        }
        @media(max-width: 576px){
            #msform{
                margin-top: 16px;
            }
            .lecture_types{
                flex-wrap: wrap !important;
            }
            #submitForReview{
                margin-top: 12px;
            }
        }


/* ===== Extracted from Organization layout ===== */
        .note-editor.note-airframe, .note-editor.note-frame{
            border-top-left-radius: 30px !important;
            border-top-right-radius: 30px !important;
        }
        .note-editor .note-toolbar, .note-popover .popover-content{
            border-top-left-radius: 33px;
            border-top-right-radius: 33px;
        }


/* ===== Extracted from Auth layout ===== */
        .swal2-popup, .swal2-modal, .swal2-confirm, .swal2-cancel{
            border-radius: 33px !important;
        }
        .swal2-html-container p{
            line-height: 30px;
        }
        .spinner {
            display: block;
            width: 200px;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            font-family: Montserrat, serif !important;
        }
        .custom_border{
            border-radius: 33px !important;
        }
        .iti #register_phone_code{
            padding-left: 0!important;
            visibility: hidden;
            opacity: 0;
        }
        .iti .iti__flag-container {
            width: 100%;
        }
        .iti.iti--allow-dropdown {
            width: 100%;
        }
        .iti .iti__selected-flag {
            padding: 0 0.75rem 0 0.5rem;
            border-radius: 30px;
            width: 100%;
            border: 1px solid #dae1e7;
            justify-content: start;
        }
        .iti .iti__selected-flag {
            border: 2px solid #ebf0f7;
        }
        .iti .iti__country-list .iti__flag {
            border-radius: 30px;
        }
        .iti .iti__selected-dial-code {
            color: #5e6d77;
        }
        .iti .iti__arrow {
            margin-left: auto;
        }
        .iti.iti--separate-dial-code .iti__selected-flag {
            background-color: rgb(255 255 255);
        }
        .iti.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
            background-color: rgb(255 255 255);
        }
        .iti .iti__selected-flag .iti__flag {
            border-radius: 10px;
        }
        .iti.iti--allow-dropdown input, .iti--allow-dropdown input[type=text], .iti--allow-dropdown input[type=tel], .iti--separate-dial-code input, .iti--separate-dial-code input[type=text], .iti--separate-dial-code input[type=tel] {
            padding-left: 3.6rem;
        }
       .iti .iti__flag-container ::-webkit-scrollbar-track {
            -webkit-box-shadow: inset 0 0 5px  #adaaaa;
            border-radius: 8px;
            background-color: #F5F5F5;
        }
        .iti .iti__flag-container ::-webkit-scrollbar {
            width: 10px;
        }
        .iti .iti__flag-container ::-webkit-scrollbar-thumb {
            border-radius: 10px;
            -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
            background-color: #afb0b3;
        }
        .iti .iti__country-list {
            box-shadow: -2px 2px 10px rgb(0 0 0 / 24%), 1px 7px 10px rgb(0 0 0 / 24%);
            border: 0;
            margin-top: 10px;
            border-top-left-radius: 30px;
            border-top-right-radius: 8px;
            border-bottom-right-radius: 8px;
            border-bottom-left-radius: 30px;
            padding-top: 0;
            padding-bottom: 10px;
            min-height: 250px;
            min-width: 380px;
        }
        .iti .iti__selected-flag {
            border-radius: 0;
        }
        .iti .iti__country-list .form-control,
        .iti .iti__country-list .form-control,
        .iti .iti__country-list .form-group .form-control{
            padding: 10px 16px 10px 43px;
            height: 45px;
            width: 100%;
            border: 0;
            border-radius: 0;
        }
        .iti .iti__country-list .form-group,
        .iti .iti__country-list .form-group,
        .iti .iti__country-list .form-group {
            margin: 0;
        }
        .iti .iti__country-list .form-group .input-icon {
            position: absolute;
            top: 22px;
            left: 15px;
            font-size: 20px;
            transform: translateY(-50%);
            color: #acb5be;
            line-height: 0
        }

        .swal2-close{
            border-right: 33px;
            border: none !important;
        }

        .form-control:focus{
            border-color: inherit;
            box-shadow: none;
            border-color: var(--theme-color);
        }
        .form-select:focus {
            border-color: inherit;
            box-shadow: none;
            border-color: var(--theme-color);
        }
        #mainNav{
            /*background:#063816;*/
        }
          #mainNav .navbar-brand img{
            border-radius: 0px !important;
        }
        @media(max-width: 800px){
            #myTab {
                gap: 8px;
            }
        }


/* ===== Extracted from Auth layout ===== */
    /* ── Floating button ─────────────────────────────── */
    #supp-widget-btn {
        position: fixed;
        bottom: 28px; right: 28px;
        width: 60px; height: 60px;
        border-radius: 50%;
        background: var(--theme-color);
        border: none; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 20px rgba(0,0,0,.25);
        z-index: 9990;
        transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
    }
    #supp-widget-btn:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(0,0,0,.3); }
    #supp-widget-btn svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
    #supp-widget-btn.supp-btn-open svg { transform: rotate(180deg) scale(.9); }
    #supp-unread-badge {
        position: absolute; top: -3px; right: -3px;
        min-width: 22px; height: 22px; padding: 0 5px;
        background: var(--theme-color); color: #fff;
        border-radius: 11px; font-size: 11px; font-weight: 700; line-height: 22px; text-align: center;
        border: 2px solid #fff; pointer-events: none;
        animation: suppBadgePop .3s cubic-bezier(.34,1.56,.64,1);
    }
    @keyframes suppBadgePop { from { transform: scale(0); } to { transform: scale(1); } }

    /* ── Popup ───────────────────────────────────────── */
    #supp-popup {
        position: fixed;
        bottom: 102px; right: 28px;
        width: 340px; height: auto;
        background: #fff;
        border-radius: 22px;
        box-shadow: 0 16px 48px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.07);
        z-index: 9989;
        overflow: hidden;
        display: none;
        flex-direction: column;
        transform-origin: bottom right;
    }
    #supp-popup.supp-open {
        display: flex;
        animation: suppPopIn .32s cubic-bezier(.34,1.56,.64,1) forwards;
    }
    #supp-popup.supp-closing {
        animation: suppPopOut .2s cubic-bezier(.55,0,.1,1) forwards !important;
    }
    @keyframes suppPopIn {
        0%   { opacity: 0; transform: scale(0.78) translateY(24px); }
        65%  { opacity: 1; transform: scale(1.03) translateY(-4px); }
        100% { opacity: 1; transform: scale(1)    translateY(0);    }
    }
    @keyframes suppPopOut {
        from { opacity: 1; transform: scale(1)    translateY(0);    }
        to   { opacity: 0; transform: scale(0.82) translateY(18px); }
    }

    /* ── Header ──────────────────────────────────────── */
    .supp-hdr {
        background: var(--theme-color);
        padding: 13px 14px;
        display: flex; align-items: center; gap: 10px;
        flex-shrink: 0;
    }
    .supp-hdr-avt-wrap { position: relative; flex-shrink: 0; }
    .supp-hdr-avt-wrap img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.45); }
    .supp-hdr-dot { position: absolute; bottom: 1px; right: 1px; width: 11px; height: 11px; background: #22c55e; border-radius: 50%; border: 2px solid var(--theme-color); }
    .supp-hdr-info { flex: 1; min-width: 0; }
    .supp-hdr-name { font-weight: 700; font-size: 14px; color: #fff; line-height: 1.2; }
    .supp-hdr-sub  { font-size: 11px; color: rgba(255,255,255,.72); margin-top: 2px; }
    .supp-hdr-btns { display: flex; align-items: center; gap: 5px; }
    .supp-hdr-full {
        background: rgba(255,255,255,.2); border: none; border-radius: 8px;
        color: #fff; font-size: 11px; font-weight: 600; padding: 5px 9px;
        cursor: pointer; text-decoration: none; white-space: nowrap;
        transition: background .15s;
    }
    .supp-hdr-full:hover { background: rgba(255,255,255,.35); color: #fff; }
    .supp-hdr-close {
        background: rgba(255,255,255,.2); border: none; border-radius: 50%;
        color: #fff; font-size: 15px; line-height: 1;
        width: 30px; height: 30px;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: background .15s;
    }
    .supp-hdr-close:hover { background: rgba(255,255,255,.38); }

    /* ── Body ───────────────────────────────────────── */
    .supp-body {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 50px 20px; gap: 16px; background: #f5f6f8; text-align: center;
    }
    .supp-body p { font-size: 14px; color: #666; margin: 0; line-height: 1.5; }
    .supp-go-btn {
        display: inline-block; padding: 10px 24px;
        background: var(--theme-color); color: #fff;
        border-radius: 24px; font-size: 14px; font-weight: 600;
        text-decoration: none; transition: opacity .15s;
    }
    .supp-go-btn:hover { opacity: .88; color: #fff; }

    @media (max-width: 480px) {
        #supp-popup     { width: calc(100vw - 20px); right: 10px; bottom: 86px; height: 420px; }
        #supp-widget-btn{ bottom: 18px; right: 14px; }
    }

    /* Search dropdown — "See all results" footer item */
    .search-see-all-item a {
        padding: 8px 0 4px;
        display: flex;
        align-items: center;
        font-weight: 600;
        color: var(--theme-color) !important;
        border-top: 1px solid #f0f0f0;
        margin-top: 4px;
    }
    .search-see-all-item a:hover { opacity: .8; }


/* ===== Extracted from Auth layout ===== */
    
        .modal-content {
            border-radius:33px !important;
        }
        
        .login-dialog-body{
            background: #c6d0e8;
            border-radius:33px !important;
            padding-bottom: 0px !important;
        }
        .login-form-container{
            left: 56px;
            top: 48px;
            width: 100%;
            margin-top: 28px;
        }
        .login-form-container input{
            height: 42px;
            background: #f3e6c4 !important;
            border-radius: 16px !important;
        }
        .login-form-container label{
            padding-left: 2rem;
            font-weight: bold;
            font-size: 16px;
        }
        .login-btn{
            width: 50% !important;
            height: 38px !important;
        }
        @media only screen and (max-width: 470px) {
          .login-form-container {
            margin-top: 0px;
          }
        }

/* "Become an Educator / Organization" in the profile dropdown: a green pill with
   its own icon so the item stands out and reads as what it is. The same pill,
   non-clickable, carries the pending text after the application is sent.
   The theme forces padding on dropdown links with !important, hence the same here. */
.user-dropdown-item-box .become-educator-item { margin: 1px 0 10px; }
/* Selectors carry .menu-user-btn .dropdown-menu so they beat the theme's
   ".menu-user-btn .dropdown-menu a { padding: 0 70px 6px 0 !important }" (which put
   70px of empty space on the right and pushed the text down) and the hover rule
   "#mainNav .navbar-nav .dropdown-menu a:hover { background-color: transparent }"
   (which made the pill vanish on hover). The pill hugs its content. */
.menu-user-btn .dropdown-menu .user-dropdown-item-box .become-educator-pill {
    display: inline-flex !important; align-items: center; gap: 10px;
    width: auto; max-width: 100%;
    background: #dff5e3 !important; color: #143d22 !important;
    border-radius: 999px; padding: 6px 16px 6px 6px !important; margin: 0;
    font-weight: 600; font-size: 15px; line-height: 1.25; text-decoration: none;
    transition: background .15s, color .15s; white-space: normal;
}
.menu-user-btn .dropdown-menu .user-dropdown-item-box a.become-educator-pill:hover,
.menu-user-btn .dropdown-menu .user-dropdown-item-box a.become-educator-pill:focus,
.menu-user-btn .dropdown-menu .user-dropdown-item-box a.become-educator-pill:focus-visible {
    background: #b3e0bf !important; color: #0f2e19 !important;
}
.menu-user-btn .dropdown-menu .user-dropdown-item-box .become-educator-pill.is-pending { background: #eef2ea !important; color: #4b5b4f !important; }
/* The pill is a <button> once the application is sent: it opens the status pop-up. */
.menu-user-btn .dropdown-menu .user-dropdown-item-box button.become-educator-pill { border: 0; text-align: left; font-family: inherit; cursor: pointer; }
.menu-user-btn .dropdown-menu .user-dropdown-item-box .become-educator-pill.is-rejected { background: #fde8e8 !important; color: #9b1c1c !important; }
.menu-user-btn .dropdown-menu .user-dropdown-item-box .become-educator-pill.is-permanent { background: #f9dcdc !important; color: #7f1d1d !important; }
.menu-user-btn .dropdown-menu .user-dropdown-item-box button.become-educator-pill:hover,
.menu-user-btn .dropdown-menu .user-dropdown-item-box button.become-educator-pill:focus-visible { filter: brightness(.96); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.user-dropdown-item-box .become-educator-pill.is-rejected .become-educator-icon,
.user-dropdown-item-box .become-educator-pill.is-permanent .become-educator-icon { filter: grayscale(.6); opacity: .85; }
.user-dropdown-item-box .become-educator-info {
    flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: currentColor; font: italic 700 12px/1 Georgia, serif; position: relative;
}
.user-dropdown-item-box .become-educator-info::before { content: "i"; color: #fff; position: absolute; }
.user-dropdown-item-box .become-educator-why {
    display: block; margin: 6px 0 0 8px; padding: 0; border: 0; background: none;
    font-size: 12.5px; font-weight: 500; color: #9b1c1c; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.user-dropdown-item-box .become-educator-why:hover { color: #7f1d1d; }
.user-dropdown-item-box .become-educator-icon { width: 34px; height: 34px; flex: 0 0 34px; display: block; }
.user-dropdown-item-box .become-educator-text { flex: 0 1 auto; }
@media (max-width: 767px) {
    .menu-user-btn .dropdown-menu .user-dropdown-item-box .become-educator-pill { font-size: 14px; padding: 5px 14px 5px 5px !important; gap: 8px; }
    .user-dropdown-item-box .become-educator-icon { width: 30px; height: 30px; flex-basis: 30px; }
}

/* Become an Educator / Organization page: long, responsive call-to-action buttons.
   .become-cta: one full-width button with the contact link under it (top of page).
   .become-cta-pair: two equal buttons side by side, stacking on phones (below the content). */
.become-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 760px; margin-left: auto; margin-right: auto; }
.become-cta .become-cta-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 54px; padding: 14px 24px; text-align: center; white-space: normal; line-height: 1.3;
}
.become-cta .become-cta-btn svg { flex: 0 0 auto; }
.become-cta-pair { flex-direction: row; flex-wrap: wrap; gap: 16px; }
.become-cta-pair .become-cta-btn { flex: 1 1 300px; width: auto; }
@media (max-width: 575px) {
    .become-cta .become-cta-btn { font-size: 15px; padding: 12px 16px; }
    .become-cta-pair .become-cta-btn { flex-basis: 100%; }
}

/* ===== Select2 tag fields (multiple) =====
   One definition for every tag picker in the panels (Tags, subtitle languages, …),
   matched to the platform's inputs: same 49px height, border, pill radius and text
   inset. Chips sit centred in the field with even gaps, and the × is a real button
   on the right of each chip instead of a grey mark pressed against the text. These
   rules replace four older copies that fought each other with !important, and are
   one class more specific than select2.css so the order the two load in does not matter. */
.select2-container.select2-container--default .select2-selection--multiple {
    min-height: 49px;
    height: auto !important;
    padding: 7px 12px !important;
    border: 1px solid #ced4da !important;
    border-radius: 25px; /* a full pill at one line (49px); tidy corners once tags wrap */
    background-color: #fff;
    display: flex;
    align-items: center;
    cursor: text;
}
.select2-container.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #adb5bd !important;
}
.select2-container.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    list-style: none;
}
.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice {
    float: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    margin: 0 !important;
    padding: 0 6px 0 12px !important;
    border: 0;
    border-radius: 999px !important;
    background: #e5a825 !important;
    color: #1d1d1d;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    max-width: 100%;
}
/* The × is Select2's text character, so where it sat depended on the font's
   metrics and it never looked centred. The character is hidden and the × drawn
   with two bars instead, exactly in the middle of the circle whatever the font. */
.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    order: 2;
    position: relative;
    display: inline-block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .12);
    color: #1d1d1d;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    cursor: pointer;
    transition: background-color .15s ease, transform .2s ease;
}
.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice__remove::before,
.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice__remove::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 1.8px;
    margin: -0.9px 0 0 -4.5px;
    border-radius: 1px;
    background: currentColor;
}
.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice__remove::before { transform: rotate(45deg); }
.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice__remove::after  { transform: rotate(-45deg); }
.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: rgba(0, 0, 0, .25);
    color: #000;
    transform: rotate(90deg);
}
/* The typing area takes whatever room is left on the line. The page script sets it
   to 10% inline, which made it wrap on its own; this wins over that. */
.select2-container.select2-container--default .select2-selection--multiple .select2-search--inline {
    float: none;
    flex: 1 1 80px;
    min-width: 80px;
}
.select2-container.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    width: 100% !important;
    height: 32px;
    margin: 0 !important;
    padding: 0 6px !important;
    font-size: 15px;
    line-height: 32px;
}
/* Empty field: start the placeholder / typed text where an input's text starts. */
.select2-container.select2-container--default .select2-selection--multiple .select2-selection__rendered > .select2-search--inline:first-child .select2-search__field {
    padding-left: 6px !important;
}


/* ==========================================================================
   Application status: become an educator / organization
   Card (profile, Become an Educator page, pop-up), repeat-application banner
   on the form, and the status pop-up. Markup: frontend/partials/partner-application.
   ========================================================================== */
.pa-card {
    --pa-tone: #b91c1c; --pa-soft: #fef2f2; --pa-line: #fecaca;
    display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px;
    background: #fff; border: 1px solid var(--pa-line); border-radius: 18px;
    padding: 22px 24px; margin: 0 0 26px; position: relative; overflow: hidden;
    box-shadow: 0 14px 34px -22px rgba(17, 24, 39, .35);
    animation: paIn .55s cubic-bezier(.2, .8, .2, 1) both;
}
.pa-card::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--pa-tone);
}
.pa-card--pending   { --pa-tone: #d97706; --pa-soft: #fffbeb; --pa-line: #fde68a; }
.pa-card--permanent { --pa-tone: #7f1d1d; --pa-soft: #fbeaea; --pa-line: #f3c4c4; }
.pa-card--modal { border: 0; box-shadow: none; padding: 4px 2px 2px; margin: 0; animation: none; }
.pa-card--modal::before { display: none; }

.pa-card__icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    background: var(--pa-soft); color: var(--pa-tone); position: relative;
}
.pa-card__icon::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--pa-tone);
    opacity: 0; animation: paRing 2.4s ease-out infinite;
}
.pa-card--rejected .pa-card__icon svg, .pa-card--permanent .pa-card__icon svg { animation: paShake .7s .35s ease both; }
.pa-card--pending .pa-card__icon svg { animation: paTick 2.4s ease-in-out infinite; }

.pa-card__body { min-width: 0; }
.pa-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.pa-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--pa-tone);
    animation: paPop .45s .15s cubic-bezier(.3, 1.6, .5, 1) both;
}
.pa-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.pa-chip--pending::before { animation: paBlink 1.4s ease-in-out infinite; }
.pa-attempt {
    display: inline-flex; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    background: #f3f4f6; color: #374151;
}
.pa-card__title { font-size: 18px; line-height: 1.35; margin: 0 0 6px; color: #111827; font-weight: 700; }
.pa-card__text { font-size: 14.5px; line-height: 1.6; color: #4b5563; margin: 0; }

.pa-reason {
    margin: 14px 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--pa-soft);
    border: 1px dashed var(--pa-line); animation: paIn .5s .2s cubic-bezier(.2, .8, .2, 1) both;
}
.pa-reason__label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pa-tone); margin-bottom: 4px; }
.pa-reason__text { font-size: 14.5px; line-height: 1.6; color: #1f2937; white-space: pre-line; overflow-wrap: anywhere; max-height: 240px; overflow-y: auto; }
.pa-reason__date { display: block; margin-top: 8px; font-size: 12px; color: #6b7280; }

.pa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.pa-actions[hidden] { display: none; }
.pa-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 700;
    text-decoration: none; position: relative; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.pa-btn--locked { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; cursor: not-allowed; }
.pa-btn--go { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(21, 128, 61, .7); }
.pa-btn--go::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg);
    animation: paSheen 3.2s 1s ease-in-out infinite;
}
.pa-btn--go:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(21, 128, 61, .75); filter: saturate(1.1); }
.pa-btn--go:active { transform: translateY(0) scale(.97); }
.pa-btn--go svg { transition: transform .2s ease; }
.pa-btn--go:hover svg { transform: translateX(3px); }
.pa-countdown { font-variant-numeric: tabular-nums; color: #111827; letter-spacing: .03em; }
.pa-hint { font-size: 13px; color: #6b7280; }
.pa-reveal { animation: paReveal .6s cubic-bezier(.3, 1.4, .5, 1) both; }

.pa-card__note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; color: #15803d; }
.pa-card__note svg { flex: 0 0 16px; margin-top: 2px; }

/* Status pop-up */
.pa-modal .modal-content { border: 0; border-radius: 20px; box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .45); }
.pa-modal .modal-header { border-bottom: 1px solid #f1f1f1; padding: 16px 22px; }
.pa-modal .modal-title { font-size: 17px; font-weight: 700; }
.pa-modal .modal-body { padding: 20px 22px 24px; }
.pa-modal.fade .modal-dialog { transform: translateY(18px) scale(.97); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.pa-modal.show .modal-dialog { transform: none; }

/* Repeat application banner on the form */
.pa-repeat {
    display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 0 0 4px;
    border-radius: 16px; background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1px solid #dbeafe;
    animation: paIn .5s cubic-bezier(.2, .8, .2, 1) both;
}
.pa-repeat__num {
    flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: #2563eb; color: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .8);
    animation: paPop .5s .1s cubic-bezier(.3, 1.6, .5, 1) both;
}
.pa-repeat__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14.5px; line-height: 1.55; color: #1e3a8a; }
.pa-repeat__body b { font-size: 15.5px; color: #1e3a8a; }
.pa-repeat__body span { color: #475569; }
.pa-repeat__body q { color: #334155; font-style: italic; overflow-wrap: anywhere; white-space: pre-line; }

@keyframes paIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes paPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes paRing { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes paShake { 0%, 100% { transform: none; } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
@keyframes paTick { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(14deg); } }
@keyframes paBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes paSheen { 0% { left: -60%; } 40%, 100% { left: 130%; } }
@keyframes paReveal { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }

@media (max-width: 575.98px) {
    .pa-card { grid-template-columns: 1fr; gap: 12px; padding: 18px 16px; border-radius: 16px; }
    .pa-card__icon { width: 46px; height: 46px; border-radius: 14px; }
    .pa-card__icon svg { width: 24px; height: 24px; }
    .pa-card__title { font-size: 16.5px; }
    .pa-actions { flex-direction: column; align-items: stretch; }
    .pa-btn { width: 100%; font-size: 14.5px; }
    .pa-hint { text-align: center; }
    .pa-repeat { flex-direction: column; gap: 10px; }
    .pa-repeat__num { flex: 0 0 auto; width: 38px; height: 38px; font-size: 16px; }
    .pa-modal .modal-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .pa-card, .pa-card *, .pa-card *::before, .pa-card *::after, .pa-card::after,
    .pa-repeat, .pa-repeat *, .pa-reveal { animation: none !important; transition: none !important; }
}
