@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.btn-edit {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000000;
}

.my--1 {
    margin-top: -.25rem !important;
    margin-bottom: -.25rem !important
}

.my--2 {
    margin-top: -.5rem !important;
    margin-bottom: -.5rem !important
}

.my--3 {
    margin-top: -1rem !important;
    margin-bottom: -1rem !important
}

.my--4 {
    margin-top: -1.5rem !important;
    margin-bottom: -1.5rem !important
}

.my--5 {
    margin-top: -3rem !important;
    margin-bottom: -3rem !important
}

.my--10 {
    margin-top: -10rem !important;
    margin-bottom: -10rem !important
}

.my-0\.5 {
    margin-top: 0.125rem !important;
    margin-bottom: 0.125rem !important;
}

.mx-0\.5 {
    margin-left: 0.125rem !important;
    margin-right: 0.125rem !important;
}

.k-drag-clue {
    z-index: 20000 !important;
}

.k-drop-hint {
    z-index: 20000 !important;
}

.alert-dialog {
    min-width: 300px;
}

.notification-container {
    position: absolute;
}

.k-notification-container {
    margin: 1rem;
}

.badge.badge-big {
    font-size: 0.85rem;
}

.k-textarea.readonly, .k-textbox.readonly {
    filter: initial;
    opacity: 1;
}


.code-editor, .code-editor-600 {
    height: 600px;
}

.code-editor-200 {
    height: 200px;
}

.code-editor-400 {
    height: 400px;
}

.tox {
    z-index: 40000 !important;
}

.tox-menu {
    z-index: 50000 !important;
}

/*.file-manager {
    z-index: 60000 !important;
}*/

.invisible {
    opacity: 0 !important;
}

#loading-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
}

.hidden {
    display: none !important;
}

button.menu-logout, input.menu-logout[type="submit"], input.menu-logout[type="reset"] {
    background: none !important;
    padding: 0.5rem 1rem;
    border: none !important;
    font: inherit !important;
    cursor: pointer !important;
    outline: inherit !important;
    width: 100% !important;
    text-align: start !important;
    border-radius: 0 !important;
    color: #424242 !important;
}

button.menu-logout:hover, input.menu-logout[type="submit"]:hover, input.menu-logout[type="reset"]:hover {
    background: #f5f5f5 !important;
}


.rz-navigation-item-icon {
    border-radius: 50% !important;
    height: 32px !important;
}

.rz-menu {
    /*background: none !important;*/
}

.user-menu-container .rz-navigation-menu {
    left: -180px !important;
}

.user-menu-container .user-menu .rz-navigation-menu {
    width: 250px !important;
}

.user-menu-container #user-chat-menu .rz-navigation-menu {
    left: -490px !important;
}

.user-menu-container .rz-navigation-item-icon-children {
    color: gray !important;
}

.menu-renderer-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: end;
}

#user-chat-badge {
    display: inline-flex !important;
    position: absolute !important;
}

#user-chat-badge .rz-badge {
    position: absolute !important;
    left: 25px !important;
    top: 25px !important;
    font-size: 10px !important;
    pointer-events: none !important;
}

.d-contents {
    display: contents !important;
}


.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    background-color: var(--bd-callout-bg, var(--bs-gray-100));
    border-left: 0.25rem solid var(--bd-callout-border, var(--bs-gray-300))
}

.bd-callout h4 {
    margin-bottom: .25rem
}

.bd-callout > :last-child {
    margin-bottom: 0
}

.bd-callout + .bd-callout {
    margin-top: -.25rem
}

.bd-callout .highlight {
    background-color: rgba(0, 0, 0, 0.05)
}

.bd-callout-info {
    --bd-callout-bg: rgba(var(--bs-info-rgb), .075);
    --bd-callout-border: rgba(var(--bs-info-rgb), .5)
}

.bd-callout-success {
    --bd-callout-bg: rgba(var(--bs-success-rgb), .075);
    --bd-callout-border: rgba(var(--bs-success-rgb), .5)
}

.bd-callout-warning {
    --bd-callout-bg: rgba(var(--bs-warning-rgb), .075);
    --bd-callout-border: rgba(var(--bs-warning-rgb), .5)
}

.bd-callout-danger {
    --bd-callout-bg: rgba(var(--bs-danger-rgb), .075);
    --bd-callout-border: rgba(var(--bs-danger-rgb), .5)
}


.form-background {
    background-color: #fafafa;
}

/* window content container */
div.k-window.edit-window .k-window-content {
    background: #fafafa;
}

/* window content titlebar */
div.k-window.edit-window .k-window-titlebar {
    background: #ededed;
}

/* window content actions */
div.k-window.edit-window .k-window-actions {
    background: #ededed;
}

/*.k-tabstrip > .k-content {
    background: #fafafa;
}*/

.agEditor div.k-editor-content div.k-content .k-content {
    font-family: "Arial", Arial, sans-serif;
    font-size: 12px !important;
    color: #000000 !important;
}


.shadowhover {
}

.shadowhover:hover {
    background-color: #e7ecf8 !important;
    border-style: solid !important;
    border-color: #6495ed !important;
}

.shadowhover:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.alert-coupon {
    border: 1px dashed;
}


.training-blocks-header-back-1 {
    background: linear-gradient(30deg, #3a3e55, #9aaee3);
}

.training-back {
    background-color: #f4f6fb;
}


.aggrid1 {
    --agcolor1: #bcc4d7;
}

.table-header-back-1 {
    background-color: #bcc4d7;
}

.aggrid1 .k-grid-header th {
    background-color: var(--agcolor1);
    text-align: center;
}

.text-wrap-center {
    white-space: normal !important; /* allow text wrapping */
    text-align: center !important; /* center text */
    vertical-align: middle;
    word-break: break-word; /* break long words if needed */
}

aggrid1 .k-grid th.center-wrap th.k-column-title .text-wrap-center {
    white-space: normal !important;
    text-align: center !important;
    vertical-align: middle !important;
    word-break: break-word;
}

.aggrid1 .k-grid-header th.text-wrap-center .k-column-title {
    white-space: normal !important;
    text-align: center !important;
    display: block;
    width: 100%;
}

.aggrid1 .k-grid-header th.text-wrap-center {
    text-align: center !important;
}

.aggrid1 .k-grid-header th.text-wrap-center .k-link {
    display: flex;
    justify-content: center;
    text-align: center;
}


.k-loader-container {
    z-index: 10000 !important;
}

.blocks-header-back-2 {
    background-color: #d9e4e7;
}

.panel-heading-1 {
    color: #ffffff;
    background-color: #337ab7;
}


.ag-radio-group .radio-item {
    font-weight: normal;
}

.ag-radio-group .selected-radio {
    font-weight: bold;
}

.course-editor .editor-header .card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.course-editor .editor-header .card-header {
    border-radius: 8px 8px 0 0;
}

.course-editor .language-selector {
    font-size: 14px;
}

.course-editor .default-culture-toggle {
    font-size: 14px;
    flex-shrink: 0 !important;
}

.course-editor .sidebar-card, .content-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-editor .sidebar-header, .content-header {
    border-bottom: 1px solid #e2e8f0;
    background-color: #f9fafb;
    border-radius: 8px 8px 0 0;
}

.course-editor .content-body {
    flex: 1;
}

.course-editor .tree-container {
    max-height: 600px;
    overflow-y: auto;
}

.course-editor .custom-tree .rz-tree-toggler {
    color: #4a5568;
}

.course-editor .tree-node {
    border-radius: 4px;
    transition: all 0.2s ease;
}

.course-editor .node-header {
    padding: 8px;
}

.course-editor .node-title {
    font-size: 0.9rem;
    color: #2d3748;
}

.course-editor .selected-node {
    background-color: #ebf5ff;
}

.course-editor .node-actions {
    visibility: hidden;
}

.course-editor .tree-node:hover .node-actions {
    visibility: visible;
}

.course-editor .content-empty {
    height: 600px;
    color: #a0aec0;
}

.course-editor .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.course-editor-preview .content-preview-dialog {
    padding: 1rem;
}

.course-editor-preview .dialog-header .content-icon {
    font-size: 1.5rem;
}

.course-editor-preview .content-container {
    min-height: 350px;
}

.course-editor-preview .content-display {
    max-height: 350px;
    overflow-y: auto;
}

/* Course Viewer Styles */
.course-viewer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Breadcrumb styles */
.course-viewer .breadcrumb {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.course-viewer .breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.course-viewer .breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Course content styles */
.course-viewer .breadcrumb {
    margin-bottom: 1.5rem;
}

/* Course header styles */
.course-viewer .course-header {
    margin-bottom: 1.5rem;
}

.course-viewer .course-header h2 {
    font-weight: 600;
    color: #212529;
}

.course-viewer .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.course-viewer .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Course structure sidebar */
.course-viewer .course-structure-card {
    margin-bottom: 20px;
    position: sticky;
    top: 20px;
}

.course-viewer .course-structure {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding: 1rem;
}

/* Mobile course navigator */
.course-viewer .mobile-course-navigator {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.course-viewer .mobile-course-navigator .card-header .section-title {
    max-width: 75%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
}

.course-viewer .mobile-course-structure {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.75rem;
}

/* Make tree items more compact in mobile view */
.course-viewer .mobile-course-structure .course-tree-item .section-item {
    padding: 0.5rem 0.25rem;
    font-size: 0.95rem;
}

.course-viewer .mobile-course-structure .children-container {
    margin-left: 0.25rem;
}

.course-viewer .mobile-course-navigator .card-footer {
    padding: 0.5rem 1rem;
}

/* Navigation buttons */
.course-viewer .section-navigation .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

/* Course tree item styles */
.course-viewer .course-tree-item {
    margin-bottom: 0.25rem;
}

.course-viewer .section-item {
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-viewer .section-item:hover {
    background-color: #f0f7ff;
}

.course-viewer .section-item.selected {
    background-color: #e3f2fd;
    font-weight: 600;
    border-left: 3px solid #0d6efd;
}


.course-viewer .section-toggle {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.course-viewer .children-container {
    border-left: 1px dashed #dee2e6;
    margin-left: 0.5rem;
}

.course-viewer .leaf-node {
    padding-left: 0.5rem;
}

.course-viewer .untranslated {
    font-style: italic;
    color: #dc3545;
}

/* Content styles */
.course-viewer .section-content {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.course-viewer .content-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Loading and empty states */
.course-viewer .loading, .no-section-selected {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-viewer .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Empty state icons */
.course-viewer .ri-file-list-3-line.empty-icon {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

/* Content styling */
.course-viewer .section-summary, .section-body, .course-summary, .course-description {
    line-height: 1.6;
}

.course-viewer .section-summary h1, .section-body h1, .course-summary h1, .course-description h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.course-viewer .section-summary h2, .section-body h2, .course-summary h2, .course-description h2 {
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
}

.course-viewer .section-summary h3, .section-body h3, .course-summary h3, .course-description h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.course-viewer .section-summary p, .section-body p, .course-summary p, .course-description p {
    margin-bottom: 1rem;
}

.course-viewer .section-summary ul, .section-body ul, .course-summary ul, .course-description ul,
.section-summary ol, .section-body ol, .course-summary ol, .course-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.course-viewer .section-summary img, .section-body img, .course-summary img, .course-description img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}


/* Content Viewer Styles */
.content-viewer-container {
    position: relative;
    transition: all 0.3s ease;
}

.content-viewer-container.loading {
    min-height: 200px;
}

.content-viewer-container .loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.content-viewer-container .loading-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 8px;
}

.content-viewer-container .content-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-viewer-container .content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.content-viewer-container .content-header {
    position: relative;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.content-viewer-container .content-header h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

.content-viewer-container .content-type-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

/* Content type specific styling */
.content-viewer-container .video-content {
    background-color: #f9f0ff;
    border-left: 4px solid #9c27b0;
}

.content-viewer-container .video-content .content-type-label {
    background-color: #9c27b0;
}

.content-viewer-container .document-content {
    background-color: #e8f4fd;
    border-left: 4px solid #2196f3;
}

.content-viewer-container .document-content .content-type-label {
    background-color: #2196f3;
}

.content-viewer-container .article-content {
    background-color: #e3f2fd;
    border-left: 4px solid #1976d2;
}

.content-viewer-container .article-content .content-type-label {
    background-color: #1976d2;
}

.content-viewer-container .product-content {
    background-color: #e0f7fa;
    border-left: 4px solid #00acc1;
}

.content-viewer-container .product-content .content-type-label {
    background-color: #00acc1;
}

.content-viewer-container .news-content {
    background-color: #e8f5e9;
    border-left: 4px solid #43a047;
}

.content-viewer-container .news-content .content-type-label {
    background-color: #43a047;
}

.content-viewer-container .default-content {
    background-color: #f5f5f5;
    border-left: 4px solid #757575;
}

.content-viewer-container .default-content .content-type-label {
    background-color: #757575;
}

.content-viewer-container .content-body {
    padding: 1.75rem;
}

.content-viewer-container .content-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-viewer-container .content-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-viewer-container .content-thumbnail:hover img {
    transform: scale(1.03);
}

.content-viewer-container .content-summary {
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
}

.content-viewer-container .summary-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.content-viewer-container .summary-content {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.content-viewer-container .video-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-viewer-container .document-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-viewer-container .content-text {
    color: #212529;
    line-height: 1.6;
}

.content-viewer-container .content-text h1, .content-viewer-container .content-text h2, .content-viewer-container .content-text h3,
.content-viewer-container .content-text h4, .content-viewer-container .content-text h5, .content-viewer-container .content-text h6 {
    color: #343a40;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-viewer-container .content-text p {
    margin-bottom: 1rem;
}

.content-viewer-container .content-text a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.15s ease;
}

.content-viewer-container .content-text a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.content-viewer-container .content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.content-viewer-container .content-text ul, .content-viewer-container .content-text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-viewer-container .content-unavailable {
    padding: 2rem;
    background-color: #fff8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 992px) {

    .course-viewer .course-header {
        margin-bottom: 1rem;
    }

    .course-viewer .course-structure-card {
        position: relative;
        top: 0;
        margin-bottom: 1.5rem;
    }

    .course-viewer .course-structure {
        max-height: 400px;
    }

    .course-viewer .breadcrumb {
        margin-bottom: 0.5rem;
    }

    .course-viewer .course-content {
        margin-bottom: 0.5rem;
    }

    .course-viewer .course-header h2 {
        font-size: 1.5rem;
    }

    .course-viewer .card-body {
        padding: 1rem;
    }

    .content-viewer-container .content-header {
        padding: 1.25rem;
    }

    .content-viewer-container .content-body {
        padding: 0.5rem;
    }

    .content-viewer-container .content-header h3 {
        font-size: 1.25rem;
    }

    .course-viewer .section-content {
        padding: 0;
    }
    
    .course-viewer .content-card {
        padding: 0.3rem;
    }
    
    .course-viewer .content-summary {
        padding: 1rem;
    }
    
    .course-viewer .content-wrapper {
        padding: 0;
    }

   
}


/* Courses List */
/* Main container styles */
.courses-listing-page {
    padding: 1.5rem 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Header styles */
.courses-listing-page .courses-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
}

.courses-listing-page .courses-header .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: white;
}

.courses-listing-page .search-container {
    width: 100%;
    max-width: 400px;
}

.courses-listing-page .search-container .input-group {
    border-radius: 50px;
    overflow: hidden;
}

.courses-listing-page .search-container .input-group-text,
.courses-listing-page .search-container .form-control {
    border-color: #e0e0e0;
    background-color: #f8f9fa;
}

.courses-listing-page .search-container .form-control:focus {
    box-shadow: none;
    border-color: #80bdff;
}

/* Section titles */
.courses-listing-page .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.courses-listing-page .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    border-radius: 3px;
}

/* Empty state */
.courses-listing-page .no-courses-container {
    background-color: white;
    border-radius: 12px;
    padding: 4rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.courses-listing-page .no-courses-container h3 {
    font-weight: 600;
    color: #343a40;
}

/* Loading spinner */
.courses-listing-page .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .courses-listing-page .courses-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .courses-listing-page .search-container {
        margin-top: 1rem;
        max-width: 100%;
    }

    .courses-listing-page .section-title {
        font-size: 1.25rem;
    }
}

/* Section styles */
.courses-listing-page .enrolled-courses-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

/* Course cards grid styles */
.courses-listing-page .row-cols-1 > * {
    padding: 0.75rem;
}

/* Course card styles */
.courses-listing-page .course-card {
    position: relative;
    transition: all 0.3s ease;
}

.courses-listing-page .course-card:hover {
    transform: translateY(-5px);
}

.courses-listing-page .course-card .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.courses-listing-page .course-card.enrolled .card {
    border-top: 4px solid #28a745;
}

.courses-listing-page .card-img-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.courses-listing-page .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.courses-listing-page .course-card:hover .card-img-top {
    transform: scale(1.05);
}

.courses-listing-page .course-default-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.courses-listing-page .course-default-image ::deep i {
    font-size: 4rem;
    color: #adb5bd;
}

.courses-listing-page .course-sections-count {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-top-left-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.courses-listing-page .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.courses-listing-page .course-summary {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.courses-listing-page .enrollment-badge {
    position: absolute;
    top: 1rem;
    left: -0.5rem;
    z-index: 10;
    background-color: #28a745;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 0 50px 50px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.courses-listing-page .enrollment-badge::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    border-top: 5px solid #1a732e;
    border-left: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.courses-listing-page .enrollment-info {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.courses-listing-page .card-actions {
    margin-top: auto;
}

.rz-dropdown-panel {
    z-index: 500000 !important;
}

.rz-popup {
    z-index: 600000 !important;
}


.hover-highlight:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Similar to table-hover */
}

.hover-highlight-info:hover {
    background-color: #e6f0ff;
}

/* Language Selector Styling */
.content-editor .language-selector-wrapper {
    min-width: 300px;
}

.content-editor .default-culture-toggle {
    flex-shrink: 0 !important;
}

.content-editor .translate-content {
    flex-shrink: 0 !important;
}

.content-editor .language-nav-container {
    position: relative;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    background-color: #f8f9fa;
    padding: 0.25rem;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.content-editor .language-nav-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.content-editor .language-badge-container {
    display: flex;
    flex-wrap: wrap;
}

.content-editor .language-badge-wrapper {
    position: relative;
    display: inline-block;
}

.content-editor .language-badge {
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: 0;
}

.content-editor .language-badge.active {
    background-color: #0d6efd !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: scale(1.05);
}

.content-editor .language-badge.bg-primary-light {
    background-color: #cfe2ff;
    color: #084298;
}

.content-editor .flag-icon {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

.content-editor .language-badge:hover:not(.active) {
    opacity: 0.85;
    transform: translateY(-1px);
}

.content-editor .language-badge:active:not(.active) {
    transform: translateY(0);
}

.content-editor .review-indicator {
    display: inline-block;
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
    font-weight: bold;
    background-color: #ffc107;
    color: #212529;
    border-radius: 50%;
    line-height: 1;
}

.content-editor .active .review-indicator {
    background-color: rgba(255, 255, 255, 0.7);
    color: #0d6efd;
}

.content-editor .default-indicator {
    color: #ffc107;
    font-size: 0.7rem;
}

.content-editor .active .default-indicator {
    color: #fff;
}

.content-editor .remove-language-button {
    position: absolute;
    top: -6px;
    right: -6px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    border: 1px solid #fff;
    padding: 0;
}

.content-editor .language-badge-wrapper:hover .remove-language-button {
    opacity: 1;
}

.content-editor .remove-language-button:hover {
    background-color: #bd2130;
}

/* Animation for adding/removing content */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.content-editor .content-updated {
    animation: pulse 0.5s ease;
}

/* grid no vertical lines for encapsulating div */
.no-vertical-lines .k-grid td,
.no-vertical-lines .k-grid th {
    border-left: none !important;
    border-right: none !important;
}

.no-vertical-lines .k-grid td,
.no-vertical-lines .k-grid th {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

/* Responsive video */
.video-responsive {
    position: relative;
    display: block;
    height: 0;
    padding: 0;
    overflow: hidden;
    margin-bottom: 1em;
}

.video-responsive .video-responsive-item {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    border: 0;
}

.video-responsive.ratio_16_9 {
    padding-bottom: 56.25%;
}

.video-responsive.ratio_4_3 {
    padding-bottom: 75%;
}

.sprout-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.sprout-video-wrapper iframe,
.sprout-video-wrapper embed,
.sprout-video-wrapper object {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.html-form-renderer {
    background: #fffefe;
}

.btn-word {
    background-color: #1a5cbd !important;
}

.btn-excel {
    background-color: #1d6f42 !important;
}

.form-editor .form-editor-layout {

}

.form-editor .form-editor-section {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-editor .form-editor-section.selected {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.form-editor .form-editor-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-editor .form-editor-section-actions,
.form-editor .form-editor-field-actions {
    display: flex;
    gap: 2px;
}

.form-editor .form-editor-field {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-editor .form-editor-field.selected {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.form-editor .form-editor-field-preview {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
    min-height: 30px;
}

.form-editor .form-editor-empty-tab,
.form-editor .form-editor-empty-group {
    border: 2px dashed #e0e0e0;
    border-radius: 4px;
    color: #9e9e9e;
}

.form-editor .form-editor-nested-tabs {
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
}

.form-editor .form-editor-tab-actions,
.form-editor .form-editor-main-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.form-editor .rz-tabview-nav li {
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-editor .rz-tabview-selected.selected-section {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.form-editor .add-tab-button {
    font-weight: bold;
    background-color: #f5f5f5;
}

.form-editor .add-tab-button .rz-tabview-title {
    font-size: 16px;
}

.form-editor .form-editor-properties {
    position: sticky;
    top: 0;
}

.form-editor .form-editor-tab-actions-tools {
    position: absolute;
    right: 0;
    margin: 13px;
}

.form-editor .detail-form-info {
    margin-top: -10px;
    margin-left: 5px;
    margin-right: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
    font-size: 0.9rem;
}

.form-editor .detail-form-info dt {
    font-weight: 600;
}

.form-editor .detail-form-info dd {
    margin-bottom: 8px;
}

.form-editor .detail-form-container {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    background-color: #f8f9fa;
}

.form-editor .form-editor-detail-form {
    background-color: #f0f8ff;
    border: 1px dashed #b8daff;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.form-editor .form-editor-detail-form p {
    margin-bottom: 0;
}

.dynamic-form-renderer {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fffefe;
}

.dynamic-form-renderer .form-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dynamic-form-renderer .form-header {
    margin-bottom: 1.5rem;
}

.dynamic-form-renderer .form-header h3 {
    margin-bottom: 0.5rem;
}

.dynamic-form-renderer .form-section {
    margin-bottom: 1rem;
}

.dynamic-form-renderer .section-description {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.dynamic-form-renderer .form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.dynamic-form-renderer .form-not-found {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.dynamic-form-renderer .form-field {
    margin-bottom: 1rem;
}

.dynamic-form-renderer ::deep .rz-fieldset {
    padding: 1rem;
    margin-bottom: 1rem;
}

.dynamic-form-renderer ::deep .rz-fieldset-legend {
    font-weight: 500;
    font-size: 1.1rem;
}

.dynamic-form-renderer ::deep .rz-tabview {
    margin-bottom: 1rem;
}

.dynamic-form-renderer ::deep .rz-tabview-panels {
    padding: 1.5rem;
}

.dynamic-form-renderer ::deep .rz-tabview-nav {
    border-bottom: 1px solid #e9ecef;
}

.dynamic-form-renderer ::deep .rz-tabview-selected {
    border-bottom: 2px solid #479cc8;
}

.dynamic-form-renderer ::deep .rz-form-field {
    margin-bottom: 1rem;
}

.dynamic-form-renderer ::deep .rz-form-field-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.searchable-popup-container {
    position: relative;
    z-index: 600000 !important;
}

.searchable-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.searchable-popup {
    display: none;
    position: absolute;
    overflow: hidden;
    width: 400px;
    border: var(--rz-panel-border);
    background-color: var(--rz-panel-background-color);
    box-shadow: var(--rz-panel-shadow);
    border-radius: var(--rz-border-radius);
    z-index: 600000 !important;
}

.searchable-popup-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.searchable-popup-search {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.searchable-popup-content {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    max-height: 300px;
}

.searchable-popup-footer {
    padding: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.searchable-popup .rz-listbox {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.searchable-popup .rz-listbox-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f5f5f5;
}

.searchable-popup .rz-listbox-item.rz-state-highlight {
    background-color: #e3f2fd;
}

.searchable-popup .rz-listbox-item:hover:not(.rz-state-highlight) {
    background-color: #f8f9fa;
    cursor: pointer;
}

.form-item-template {
    padding: 0.5rem 0;
}

.form-item-template .form-item-title {
    font-weight: 600;
    font-size: 1rem;
}

.form-item-template .form-item-name {
    font-size: 0.8rem;
    color: #6c757d;
}

.form-item-template .form-item-description {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: #495057;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.form-item-template .form-item-badge {
    margin-top: 0.5rem;
    display: inline-block;
}

.stickybuttonsbar {
    background-color: #fffedb;
}

.rz-dialog-wrapper {
    z-index: 1000000 !important;
}

/* Twitter/X-style heart animation */
.heart {
    display: inline-block;
    width: 75px;
    height: 75px;
    background: url("/_content/Argus.Web.Shared/img/heart-anim.png") no-repeat 0 0;
    cursor: pointer;
    transition: background-position 1s steps(28);
    transition-duration: 0.1s;
}

/* add a hover state with beautiful scale animation...etc  */
.heart:hover {
    transition-duration: 0.2s;
    transform: scale(1.1);
}

.heart.is-active {
    transition-duration: 1s;
    background-position: -2100px 0;
}

.favorite-course-btn .heart {
    position: absolute;
    top: 0;
    right: 0;
}




.aggrid-compact .k-table {
    font-size: 0.82rem; /* tweak to taste: 0.78�0.88rem */
}

.aggrid-compact .k-table-th,
.aggrid-compact .k-table-td {
    /*padding: .25rem .35rem;*/ /* default is larger */
    /*line-height: 1.15;*/
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    line-height: 1.85 !important;
    font-size: 0.85rem; /* optional */
}

.aggrid-compact .wrap-head .k-column-title {
    white-space: normal; /* allow wrapping */
    line-height: 1.1;
    text-overflow: clip; /* remove ellipsis so it can wrap */
    overflow: visible;
}

.aggrid-compact .k-table-td {
    white-space: nowrap;
}

.aggrid-compact .k-grid-toolbar {
    padding: .25rem .35rem;
    min-height: 2rem;
}


/* Filter row cells */
.aggrid-compact .k-filter-row th,
.aggrid-compact .k-filter-row td {
    padding-top: 2px;
    padding-bottom: 2px;
}

/* Inputs in filter row */
.aggrid-compact .k-filter-row .k-input,
.aggrid-compact .k-filter-row .k-input-inner,
.aggrid-compact .k-filter-row .k-textbox,
.aggrid-compact .k-filter-row .k-picker,
.aggrid-compact .k-filter-row .k-dropdownlist {
    height: 26px; /* try 24�28px */
    min-height: 26px;
    font-size: 0.85rem;
}

/* Reduce inner padding so the text is vertically centered */
.aggrid-compact .k-filter-row .k-input-inner {
    padding-top: 2px;
    padding-bottom: 2px;
}

.aggrid-compact .k-filter-row .k-button {
    height: 26px;
    min-height: 26px;
    padding: 0 6px;
}

.k-input.edithighlight .k-input-inner {
    background: #edf9df;
}


.ageditformcardbg {
    background-color: #f6f8fb;

}



/* 1) Make the window a flex column so content can stretch */
.k-window.ag-window-compact {
    display: flex !important;
    flex-direction: column !important;
}

    /* 2) Compact titlebar (header) */
    .k-window.ag-window-compact > .k-window-titlebar {
        padding: 6px 10px !important;
        min-height: 34px !important;
        flex: 0 0 auto;
    }

    /* 3) Content fills remaining height + scrolls if needed */
    .k-window.ag-window-compact > .k-window-content {
        padding: 10px 12px !important;
        flex: 1 1 auto !important;
        min-height: 0 !important; /* IMPORTANT for overflow to work in flex */
        overflow: auto !important;
    }

    /* 4) Footer (WindowFooter) compact */
    .k-window.ag-window-compact > .k-actions.k-window-actions {
        padding: 6px 10px !important;
        flex: 0 0 auto !important;
    }

    /* 5) Optional: remove bootstrap container padding INSIDE this window only */
    .k-window.ag-window-compact .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

/* AI Reply Button Pulse Animation */
@keyframes button-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(25, 135, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

.k-button-pulse {
    animation: button-pulse 2s infinite;
    position: relative;
}

.k-button-pulse:hover {
    animation: none;
}




/* event css */
/* Optional: you can apply the background on a wrapper instead of body */
.ag-events-shell {
    position: relative;
    padding: 1.5rem 0;
}

/* Header */
.ag-events-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ag-events-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.25);
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.ag-events-subtitle {
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* Grid */
.ag-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

/* Card */
.ag-event-card {
    --ag-glass: rgba(255,255,255,0.72);
    --ag-glass-border: rgba(255,255,255,0.32);
    --ag-shadow: rgba(99,102,241,0.18);
    --ag-shadow-2: rgba(0,0,0,0.06);
    background: var(--ag-glass);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid var(--ag-glass-border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 14px 60px var(--ag-shadow), 0 2px 6px var(--ag-shadow-2);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease;
    position: relative;
    animation: ag-card-in .55s ease-out both;
    animation-delay: var(--ag-delay, 0ms);
}

    .ag-event-card::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: radial-gradient(900px circle at 20% 0%, rgba(255,255,255,0.55), transparent 55%), radial-gradient(700px circle at 90% 40%, rgba(99,102,241,0.22), transparent 60%);
        opacity: 0.65;
        pointer-events: none;
    }

    .ag-event-card:hover {
        transform: translateY(-10px) scale(1.015);
        border-color: rgba(255,255,255,0.55);
        box-shadow: 0 22px 85px rgba(99,102,241,0.28), 0 0 0 1px rgba(255,255,255,0.55);
    }

/* Media */
.ag-event-media {
    height: 210px;
    position: relative;
    overflow: hidden;
}

    .ag-event-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.02);
        transition: transform .45s ease;
    }

.ag-event-card:hover .ag-event-media img {
    transform: scale(1.12);
}

/* Fallback image block */
.ag-event-media-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.22), rgba(245,158,11,0.18));
}

.ag-event-media-fallback-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-size: 1.4rem;
    color: rgba(30,41,59,0.85);
}

.ag-event-media-fallback-text {
    margin-top: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Badge */
.ag-event-badge {
    position: absolute;
    top: 0px;
    right: 84px;
    padding: .45rem .9rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.ag-badge-active {
    background: rgba(59,130,246,0.92);
    color: #fff;
}

.ag-badge-design {
    background: rgba(245,158,11,0.92);
    color: #fff;
}

.ag-badge-completed {
    background: rgba(16,185,129,0.92);
    color: #fff;
}

.ag-badge-inactive {
    background: rgba(239,68,68,0.92);
    color: #fff;
}

/* Body */
.ag-event-body {
    padding: 1.5rem 1.5rem 1.4rem 1.5rem;
    position: relative;
}

.ag-event-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .78rem;
    font-weight: 900;
    color: rgba(99,102,241,0.95);
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ag-event-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ag-event-subtitle {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #64748b;
    font-size: .92rem;
    margin-bottom: 1rem;
}

    .ag-event-subtitle i {
        color: rgba(99,102,241,0.95);
    }

.ag-event-summary {
    color: #475569;
    font-size: .96rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.ag-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    padding: 1.05rem 1.1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.35);
}

.ag-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #475569;
    font-size: .88rem;
    max-width: 100%;
}

    .ag-meta-item i {
        color: rgba(99,102,241,0.95);
        font-size: 1rem;
    }

.ag-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 230px;
}

/* Actions */
.ag-event-actions {
    margin-top: 1.25rem;
}

.ag-btn-open {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .78rem 1.15rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: .92rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(99,102,241,1), rgba(129,140,248,1));
    box-shadow: 0 10px 26px rgba(99,102,241,0.33);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

    .ag-btn-open:hover {
        transform: translateY(-2px);
        filter: brightness(1.02);
        box-shadow: 0 16px 36px rgba(99,102,241,0.42);
    }

    .ag-btn-open i {
        transition: transform .25s ease;
    }

    .ag-btn-open:hover i {
        transform: translate(2px, -2px);
    }

.ag-btn-open-disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Animation */
@keyframes ag-card-in {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ag-events-grid {
        grid-template-columns: 1fr;
    }

    .ag-ellipsis {
        max-width: 100%;
    }
}

.ag-flip {
    perspective: 1400px;
}

.ag-flip-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

    .ag-flip-inner.is-flipped {
        transform: rotateY(180deg);
    }

.ag-flip-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.ag-flip-front {
    position: relative;
}

.ag-flip-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
}

/* ---------- Top chips (status + accepted) ---------- */
.ag-event-topchips {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
    z-index: 3;
}

.ag-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .78rem;
    border-radius: 999px;
    font-weight: 900;
    font-size: .74rem;
    letter-spacing: .02em;
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    color: #fff;
}

    .ag-chip i {
        font-size: .9rem;
    }

.ag-chip-accept {
    background: rgba(16,185,129,0.92);
}

/* ---------- Flip button on image ---------- */
.ag-flip-btn {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    color: rgba(30,41,59,0.88);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    transition: transform .2s ease, filter .2s ease;
    z-index: 4;
}

    .ag-flip-btn:hover {
        transform: translateY(-2px) scale(1.02);
        filter: brightness(1.02);
    }

/* ---------- Front actions: add ghost button ---------- */
.ag-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .78rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(99,102,241,0.25);
    background: rgba(255,255,255,0.55);
    color: rgba(30,41,59,0.9);
    font-weight: 800;
    font-size: .92rem;
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

    .ag-btn-ghost:hover {
        transform: translateY(-2px);
        filter: brightness(1.02);
        box-shadow: 0 14px 34px rgba(0,0,0,0.09);
    }

/* Put the two buttons nicely */
.ag-event-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

/* ---------- Back side ---------- */
.ag-back-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.35);
}

.ag-back-title {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 900;
    color: #0f172a;
}

.ag-back-close {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.6);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
    transition: transform .2s ease;
}

    .ag-back-close:hover {
        transform: translateY(-2px);
    }

.ag-map-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.ag-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.ag-map-open {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .85rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    font-size: .82rem;
    color: #fff;
    background: rgba(99,102,241,0.92);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.ag-back-empty {
    height: 210px;
    display: grid;
    place-items: center;
    gap: .4rem;
    color: #475569;
    background: rgba(255,255,255,0.45);
    border-bottom: 1px solid rgba(255,255,255,0.35);
}

.ag-back-body {
    padding: 1.1rem 1.2rem 1.25rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.ag-back-row {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: .7rem;
    align-items: start;
    color: #334155;
}

    .ag-back-row i {
        color: rgba(99,102,241,0.95);
        margin-top: .2rem;
    }

.ag-back-link {
    color: rgba(99,102,241,0.95);
    text-decoration: none;
    font-weight: 400;
    font-size: .82rem;
}

    .ag-back-link:hover {
        text-decoration: underline;
    }

.ag-back-summary {
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 16px;
    padding: .9rem 1rem;
    color: #334155;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    font-size: .82rem;
    overflow: hidden;
}

.ag-back-stats {
    display: flex;
    gap: .75rem;
}

.ag-stat {
    flex: 1;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 16px;
    padding: .85rem 1rem;
}

.ag-stat-label {
    font-size: .78rem;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ag-stat-value {
    margin-top: .35rem;
    font-weight: 900;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

    .ag-stat-value i {
        color: rgba(16,185,129,0.95);
    }

.ag-back-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}

.ag-filter {
    margin-top: 1.25rem;
    display: grid;
    gap: .6rem;
    justify-items: center;
}

.ag-seg {
    display: inline-flex;
    gap: .35rem;
    padding: .35rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 16px 50px rgba(0,0,0,0.10);
}

.ag-seg-btn {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: .65rem .95rem;
    font-weight: 900;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: rgba(255,255,255,0.92);
    background: transparent;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
    white-space: nowrap;
}

    .ag-seg-btn i {
        opacity: .95;
    }

    .ag-seg-btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,0.14);
    }

    .ag-seg-btn.active {
        color: #0f172a;
        background: rgba(255,255,255,0.70);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

.ag-filter-hint {
    color: rgba(255,255,255,0.9);
    font-size: .92rem;
    font-weight: 300;
    text-shadow: 0 10px 30px rgba(0,0,0,0.20);
}

/* Small screens: allow wrapping */
@media (max-width: 768px) {
    .ag-seg {
        width: 100%;
        max-width: 520px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ag-seg-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.ag-event-card {
    height: 100%;
}

.ag-flip-inner {
    height: 100%;
}

.ag-flip-face {
    height: 100%;
}

/* Make both faces behave like full-height columns */
.ag-flip-front,
.ag-flip-back {
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------
   FRONT: keep buttons at the bottom
-------------------------------------------- */
.ag-event-body {
    /* You already have padding - keep it */
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0; /* allows internal clamped blocks to behave */
}

/* Everything above buttons */
.ag-front-content {
    display: flex;
    flex-direction: column;
    gap: .85rem; /* optional: makes spacing consistent */
    flex: 1 1 auto;
    min-height: 0;
}

/* Keep the action row stuck to bottom */
.ag-event-actions {
    margin-top: auto;
}

/* Keep summary SAME HEIGHT across cards (front) */
.ag-event-summary {
    /* you already have line-clamp; add fixed min-height */
    -webkit-line-clamp: 3;
    min-height: calc(1.65em * 3); /* 3 lines at your line-height */
}

/* Meta block same height feel */
.ag-event-meta {
    /* if some cards have missing items, keep it stable */
    min-height: 84px; /* tweak if needed */
}

/* -------------------------------------------
   BACK: map fixed height + content equal height + accepted same level
-------------------------------------------- */

/* Ensure back fills height */
.ag-back-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/* Content grows, footer sticks */
.ag-back-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

/* Fix map area same size everywhere */
.ag-map-wrap {
    height: 210px; /* already set - keep consistent */
    flex: 0 0 210px;
}

/* Make the summary block same height across cards (back) */
.ag-back-summary {
    -webkit-line-clamp: 5;
    min-height: calc(1.6em * 5); /* 5 lines at line-height 1.6 */
}

/* Pin accepted and buttons to bottom with consistent spacing */
.ag-back-stats {
    margin-top: auto; /* <-- pushes stats to bottom zone */
    padding-top: .25rem;
}

.ag-back-actions {
    margin-top: .75rem; /* consistent space under Accepted */
}

/* -------------------------------------------
   make the back rows area not push layout too much
-------------------------------------------- */
.ag-back-row-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optional: if you want the back rows area not to grow too tall */
.ag-back-content > .ag-back-row {
    max-height: 2.6em; /* keeps rows tidy */
}
/* end event css*/